-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
sveltekit via adapter-node can no longer serve over http2 #3566
Comments
This sounds like it's similar/related to #3479? That was an issue in the dev server, but it might be the same kind of header parsing issue at play here. |
It definitely is. One workaround for now would be to strip the HTTP/2 headers from the request before passing it to the SvelteKit middleware. Otherwise we would need to strip them in the adapter or get node-fetch to not choke on these headers or we'd need to fork node-fetch. |
I suppose alternatively we could just document in the Node adapter readme that the exposed middleware is just intended for HTTP/1 and it's the user's responsibility to adjust the incoming requests if they're HTTP/2. |
Is there a performance penalty to translating incoming HTTP/2 requests to HTTP/1 in a reverse proxy (beyond just the processing I mean)? I'm not familiar with the details of this, and whether you lose some of the benefits of HTTP/2 when you do that. As discussed in #2190 (and elsewhere) we do expect users to use a reverse proxy in front of |
Describe the bug
☑️ The following works using
❌ But breaks with the error 400 Bad Request
Invalid request body
on every route after updating toReproduction
Repo with the bug in action can be found here: https://github.com/Cangit/http2bug
(Check the readme)
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: