-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
req.socket might be null #42
Comments
Thanks for reporting, @Gerhut ! I do indeed see the Node.js docs have updated to note that |
Sorry for the delay on this. It seems very convoluted on when exactly Node.js will make |
@dougwilson Any luck with this? I'm running into an occasional error where req.socket is null and req.socket.destroy ends up blowing up. |
Just opened #57 with a fix for this. Planning on releasing it in the current major and then pulling it into |
See discussion in nodejs/undici#1115, nodejs/node#41011.
There will be
TypeError: Cannot read properties of null (reading 'destroy')
when using req as body in undici.stream, which sets req.socket to null.The text was updated successfully, but these errors were encountered: