-
Notifications
You must be signed in to change notification settings - Fork 236
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
"Remote end closed socket abruptly" Node.js 12.16.3 #312
Comments
Darn. Do you know what did the Node.js release change regarding TLS sockets? |
https://github.com/nodejs/node/blob/master/doc/changelogs/CHANGELOG_V12.md#12.16.3, Updated OpenSSL to 1.1.1g? |
Will take a look at this later today. |
It worked before due to bug in Node that was fixed in nodejs/node@ed21d32#diff-e6ef024c3775d787c38487a6309e491dL634, which then broke needle. Basically, just because the socket has If you want to detect a premature close please take look at hows |
Good call @ronag. So we should remove that check altogether? |
This comment has been minimized.
This comment has been minimized.
Yes. Use |
node-pre-gyp works better with request rather than needle on node 12.13.6. Until tomas/needle#312 gets fixed, we will use request.
node-pre-gyp works better with request rather than needle on node 12.13.6. Until tomas/needle#312 gets fixed, we will use request.
Wow.. this has been driving me crazy for a week. For some reason the issue seems to be exacerbated by builds that were running in a CI container. I couldn't reproduce the issue in a local docker build |
A workaround for: tomas/needle#312 Suggested-by: Forrest Li <forrest.li@kitware.com>
Sorry to pester, but any chance this can be resolved soon? We're getting a lot of issues opened in node-canvas because our prebuilds are failing to download. Thank you! |
@zbjornson Looking at it right now. Sorry for the delay. |
Ok looks like I found a fix. Once I get the last three specs to pass on Node v12.16.3 I'll push a new version. |
Any updates on this? |
Yes! I'll push a new version in a while. |
Just pushed 2.5.0 which fixes this issue. Sorry everyone for the long delay -- I run an ecommerce platform and these past weeks have been a bit crazy. PS: @ronag I tried the |
@tomas Thanks for the fix. Working on open source can be a pretty thankless business sometimes, but your work here is much appreciated 😃 |
needle has a bug with sockets on newer node 12, we're currently avoiding this newer node 12 to evade the problem. This bug is fixed in needle 2.5.0, so let's upgrade to that. tomas/needle#312
needle has a bug with sockets on newer node 12, we're currently avoiding this newer node 12 to evade the problem. This bug is fixed in needle 2.5.0, so let's upgrade to that. tomas/needle#312
needle has a bug with sockets on newer node 12, we're currently avoiding this newer node 12 to evade the problem. This bug is fixed in needle 2.5.0, so let's upgrade to that. tomas/needle#312
needle has a bug with sockets on newer node 12, we're currently avoiding this newer node 12 to evade the problem. This bug is fixed in needle 2.5.0, so let's upgrade to that. tomas/needle#312
Versions of `needle` prior to `2.5.0` cannot cope with redirects (as documented: tomas/needle#312). This prevents prebuilt `canvas` binaries from being downloaded on MacOS, requiring the global install of its dependencies. Updating Needle restores it to functionality, addressing this. It also avoids the need to add `request` to `package.json`; it also obsoletes mozilla#12018.
needle has a bug with sockets on newer node 12, we're currently avoiding this newer node 12 to evade the problem. This bug is fixed in needle 2.5.0, so let's upgrade to that. tomas/needle#312
Hey! The new patch release of Node.js (12.16.3) broke needle (we're using 2.4.0) and using needle with redirects now causes the following error:
You can reproduce it with the following piece of code:
A similar issue was raised a while ago here: #261
The text was updated successfully, but these errors were encountered: