What's the net::ERR_HTTP2_PROTOCOL_ERROR about?

前端 未结 22 2575
無奈伤痛
無奈伤痛 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

    In my case it was - no disk space left on the web server.

    0 讨论(0)
  • 2020-12-01 03:23

    I had this problem when having a Nginx server that exposing the node-js application to the external world. The Nginx made the file (css, js, ...) compressed with gzip and with Chrome it looked like the same.

    The problem solved when we found that the node-js server is also compressed the content with gzip. In someway, this double compressing leading to this problem. Canceling node-js compression solved the issue.

    0 讨论(0)
  • 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

    0 讨论(0)
  • 2020-12-01 03:24

    I had another case that caused an ERR_HTTP2_PROTOCOL_ERROR that hasn't been mentioned here yet. I had created a cross reference in IOC (Unity), where I had class A referencing class B (through a couple of layers), and class B referencing class A. Bad design on my part really. But I created a new interface/class for the method in class A that I was calling from class B, and that cleared it up.

    0 讨论(0)
提交回复
热议问题