net::ERR_HTTP2_PROTOCOL_ERROR error handling
Remember the processing flow of a browser report: net::ERR_HTTP2_PROTOCOL_ERROR
There are countless articles about this error reported by browsers, so this error needs to be investigated and dealt with based on your actual situation.
Screenshot above:
My problem is that I get an error when exporting a file. Other export functions of the system are fine, but only this export has this problem. Here is my troubleshooting:
1.If an error is reported on the page, go to the server to check the log as soon as possible. There is no error message in the back-end service log.
2.After checking the Nginx error log (many articles said it was an Nginx problem), I found that my service was not load balanced through Nginx. An operation and maintenance colleague said that we used Alibaba Cloud's SLB.
3.After checking the SLB settings, I found that HTTP 2.0 is enabled by default. After it is turned off, the file can be exported normally.
So this troubleshooting result is that SLB has enabled HTTP 2.0. Let’s consider this question:
Why does it not work if HTTP 2.0 is enabled? It must be a problem with the protocol used by the front-end request.
Let’s go here first. I hope my troubleshooting path can help you.