Question

Chrome console error "net::ERR_HTTP2_PROTOCOL_ERROR 200". Some site's content doesn't available.

Posted April 30, 2020 7.9k views
NginxDigitalOcean

Hello!
I am getting error on opening my site. Here are the examples:

GET https://houseville.villas/fonts/Montserrat-Regular.woff2
net::ERR_HTTP2_PROTOCOL_ERROR 200
GET https://houseville.villas/styles/welcome-tour.css
net::ERR_ABORTED 404

The errors only relate to site resources like css and js. The error appeared on May-29 and somehow solved without any actions from my side. It just appeared again.

Thanks for you answer!

edited by MattIPv4

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hi there @secretdeals,

There are a few things which could be causing this issue:

  • Make sure there is enough space on the Droplet, you can do that by running the df -h command

  • After some research, it looks like that there was a bug report and it is being fixed at the moment:

https://chromium-review.googlesource.com/c/chromium/src/+/2001234

I’ve not been able to recreate the problem myself but some people report that making the following changes to their Nginx server blocks fixed the problem:

gzip on;
add_header 'Cache-Control' 'no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0';
expires off;

Make sure to run an Nginx config test before restarting the service:

  • nginx -t

If you get syntax is ok, then go ahead and restart the service.

Let me know how it goes!
Regards,
Bobby

Submit an Answer