-
Notifications
You must be signed in to change notification settings - Fork 284
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
Error: read ECONNRESET for Nodejs 20.3.0 (Never successful from this version) #4181
Comments
Have you found a workaround? |
This issue can be temporarily solved by adding "await" at each request, which means eash request MUST BE waiting for the resp of the app, and then everything gets fine.... |
We just also found this bug, and it seems to be introduced in this specific release. I bisected:
But I'm not familiar with NodeJS internals, and the changelog (https://nodejs.org/en/blog/release/v20.3.0) isn't point out clear causes. I'm thinking maybe any of these:
|
Related to ladjs/supertest#709 (comment). But I still don't know why this behaviour is introduced in Node 20.3. Something seems to disallow "many" (3?) connections, or concurrent servers. Setting maxConnections to 1 causes my tests to fail even earlier (after 1/6 supertest's instead of 3/6), but setting it to maxConnections > 3 doesn't increase the amount of tests working past 3. |
Hi! Can you reproduce on the latest version of v20 with no dependencies? Also, is this only occurring in Gh actions? |
Details
Successfully on:
14.x (Windows, Ubunto, Mac), 16.x (Windows, Ubunto, Mac), 18.x (Windows, Ubunto, Mac) and 20.3.0 (Windows).
Failed on:
20.3.0 (Ubunto and Mac).
For more, please see: https://github.com/MaledongGit/egg/actions/runs/5234494571/jobs/9450695057
Node.js version
20.3.0
Example code
In the unit test:
if we ignored the snippet of codes above, the test can pass.
However even if I tried 3 or more times, it always gets me wrong. So please ignore this comment.
Operating system
Ubunto and Mac (with the latest version on GitHub for unit tests)
Scope
SEWeiTung/egg@25f2147
(This is a 3-rd party repo and I've pasted the unit test part).
Module and version
No response
PS: I've seen such issues many times after searching in Node, however mine is DIFF from others in:
Other people may meet this problem by accident, but I met this problem this morning and tested several times, it always got me mad with the "failed" test.
Only the specific kind of version of Nodejs, as well as Linux or Mac.
Is there anything changed or ……?
Notice:This issue can be temporarily solved by adding "await" at each request, which means eash request MUST BE waiting for the resp of the app, and then everything gets fine....
The text was updated successfully, but these errors were encountered: