New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chrome throw ERR_HTTP2_PROTOCOL_ERROR #4403
Comments
We were able to resolve this following #3895 and adding |
I resolved this by disabling http/2 in the dev server.
In },
server: {
host: true,
proxy: {
'https://localhost:3000': 'https://localhost:3000'
},
https: true,
port: 3000
}
}); There may be an error between how chrome handles http/2 and how node.js has http/2 implemented.
|
It might not just be a chrome bug, I am able to somewhat consistently reproduce this on firefox as well |
I have the same issue. But @benatshippabo solution works for me, thanks. |
Perhaps #6207 would fix this |
Also running into this issue, and pretty frequently. Seems to also happen not only when many modules are loaded, but simply when large files are served along the page (e.g. a 10-20MB GLB file or so). The somewhat weird workaround of setting the proxy to localhost worked for me as well. |
Yeah, we have a chunky FontAwesome module which seems to cause this to sporadically appear. At least, it's the first file to die in the dev tools log, then on refresh, all the others die as well. Edit: using v2.9.12 |
Seems like #6207 is merged into Vite 3 alpha. If y'all could test it out, I think it should fix the issue. Otherwise it also seems harmless enough to backport to Vite 2.9 |
I'll pre-emptively close this per #4403 (comment) |
Describe the bug
When I run vite devServer, Chrome occasionally fails to load some js files. The error message is net::ERR_HTTP2_PROTOCOL_ERROR.
Then I re-run vite devServer and reload it, and it runs fine. But when I copied the url and opened it in a new tab, it broke again. This error only occurs in Chrome, FireFox is working fine.
I find some net log in chrome://net-internals/#events:
This is the gist of the error:
HTTP2_STREAM_ERROR
--> description = "Server reset stream."
--> net_error = "ERR_HTTP2_PROTOCOL_ERROR"
--> stream_id = 13571
Reproduction
System Info
Used Package Manager
yarn
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: