What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

前端 未结 22 2712
無奈伤痛
無奈伤痛 2020-12-01 02:24

I\'m currently working on a website, which triggers a net::ERR_HTTP2_PROTOCOL_ERROR 200 error on Google Chrome. I\'m not sure exactly what can provoke this erro

22条回答
  •  南方客
    南方客 (楼主)
    2020-12-01 03:23

    By default nginx limits upload size to 1MB.

    With client_max_body_size you can set your own limit, as in

    location /uploads {
        ...
        client_max_body_size 100M;
    } 
    

    You can set this setting also on the http or server block instead (See here).

    This fixed my issue with net::ERR_HTTP2_PROTOCOL_ERROR

提交回复
热议问题