-
Notifications
You must be signed in to change notification settings - Fork 570
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
fetch is sometimes crashing entire node process since upgrading from node 22.9.0 to 23.1.0 #3813
Comments
Thanks for reporting! Can you provide steps to reproduce? We often need a reproducible example, e.g. some code that allows someone else to recreate your problem by just copying and pasting it. If it involves more than a couple of different file, create a new repository on GitHub and add a link to that. |
Unfortunately I don't think it's possible to create this, and I know that this report probably doesn't help much without it. It happens randomly about once a day when doing various simple fetches. |
+1 |
I dont think it is related to node version, emitting "error" event has a special meaning in nodjes, same as throwing exception and if u are not handling it, it will just crash the process. This is the behaviour both for 22.x, 23.x and older version of nodejs by adding process.on('uncaughtException', err => console.error(`Uncaught Exception`, { err })); should avoid process crash |
is it really uncaughtException? Thought it is uncaughtPromiseRejection? |
Im sure you know better than me, since u are nodejs contributor 😄 on second thought, it is possible that there was some change in 23.x, specifically in streams, that emits error without handling it But anyway I do not think it is undici issue |
All my fetch calls are done in try block. I’m not sure but if that’s issue on my end, shouldn’t the file be mentioned in the crash stack trace? I didn’t said this is caused by node version, when node was updated from 22.9.0 to 23.1.0 also undici version bundled with node has changed, so that’s probably the issue. This has never occurred up to version 22.9.0, but now it still happens even on 23.3.0 |
It feels similar to this one People complain that tls is initialized internally without handling the "error" event which causes process to crash on I would recommend you to open the issue on node repo |
Bug Description
fetch is sometimes crashing entire node process since upgrading from node 22.9.0 to 23.1.0
Logs & Screenshots
Environment
amd64
node:23.1.0-bookworm
docker imageThe text was updated successfully, but these errors were encountered: