-
Notifications
You must be signed in to change notification settings - Fork 196
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
node-spdy incompatible with node >= v15 #380
Comments
Here is a log extract showing the abort and the RST_STREAM:
|
Turns out it works with node v14.15.1 and breaks with node v15.4.0. Something must have changed in node v15 that broke http/2. |
I experience the same problem - it is not working with node v15.8.0 and express-session, but it works just fine if you don't set a cookie. I confirm that it works with node v14.15.5 and express-session. |
Thanks for the report @anikolov. |
I also have this happening, with Node 15.8.0 but not with 14.15.4. express 4.17.1, spdy 4.0.2. |
With node 16.0.0 gives a deprecation warning: |
Any progress with that? |
I doubt this is the root cause, as DEP0111 is documented-only deprecation for now. Nevertheless, I have submitted a pull request to patch the upcoming deprecation. |
I did some testing and here are my findings to assist in finding the root cause of the incompatibility.
Even after manually applying both pull requests that resolves DEP0066 and DEP0111, I have the same results.
The compatibility issue started from NodeJS 15.0.0. |
The spdy module appears to be incompatible with Node >=15 as of this writing spdy-http2/node-spdy#380 As HTTP/2 is relevant only for SSL connections and I think that is pretty rarely used I think a pretty safe and convenient option is to remove HTTP/2 support and spdy module.
The spdy module appears to be incompatible with Node >=15 as of this writing spdy-http2/node-spdy#380 As HTTP/2 is relevant only for SSL connections and I think that is pretty rarely used I think a pretty safe and convenient option is to remove HTTP/2 support and spdy module.
The spdy module appears to be incompatible with Node >=15 as of this writing spdy-http2/node-spdy#380 As HTTP/2 is relevant only for SSL connections and I think that is pretty rarely used I think a pretty safe and convenient option is to remove HTTP/2 support and spdy module.
Redis: - redis-> redis@v3 until v4 is working stable ( tj/connect-redis#336 ) - connect-redis -> 6.0.0 - update @types/connect-redis -> ^0.0.18 and removed @types/redis since this is not necessary anymore Corrected edumeet server version deactivated spdy since it is not working anymore with node.js>15 ( spdy-http2/node-spdy#380 ) removed package-lock.json ( just support yarn, use npm at your own risk
Any updates on this ? |
@nmargaritis I forked this repo and committed some previous PRs to my fork, but I'm not knowledgeable enough to contribute much besides the deprecated packages I was able to update. If anyone would like to contribute in any way, I'd be glad to attempt to maintain the fork. |
It seems to me node is behind with regards to newer http protocols - the only viable http2 option is this(forcing usage of node 14, whose EOL is in about a year). node 16 support is critical |
Bump |
I've got the same issue with NodeJS 20 |
same issue with with webpack which enabled http2. |
@SunshowerC I created a personal fork to help with http2 requests in NestJS, but does the library below work for you? I'd create a new fork for more public use if this works and there was interest. |
I've been using spdy 4.0.2 for some time without a hitch and am suddenly getting http2 protocol errors with 'Server reset stream'. http/1.1 works.
This is what I see in the browser:
Failed to load resource: net::ERR_HTTP2_PROTOCOL_ERROR
Wondering why that could and how I can debug the issue. Any advice would be appreciated.
The text was updated successfully, but these errors were encountered: