You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an HTTP request fails with an error, req.emit is not a function. I can reproduce in our application, but having difficulty creating a minimum sample. This is a call against an HTTPS endpoint that is returning a 500 error.
TypeError: req.emit is not a function
at TLSSocket.socketCloseListener (_http_client.js:271:7)
at emitOne (events.js:101:20)
at TLSSocket.emit (events.js:188:7)
at TCP._handle.close as _onclose
The text was updated successfully, but these errors were encountered:
@carbonrobot we should try to replicate the problem. It seems tricky enough and we need to add a unit test anyway.
Would you mind trying to open a TLS socket against an HTTPS endpoint, and then close the socket? Maybe it's a TLS connection being dropped before any data is transferred.
@mcollina will do. I'm working on extracting the relevant code to make a minimal sample.
mscdex
added
http
Issues or PRs related to the http subsystem.
https
Issues or PRs related to the https subsystem.
and removed
http
Issues or PRs related to the http subsystem.
labels
Sep 7, 2016
node/lib/_http_client.js
Line 271 in 1004ece
When an HTTP request fails with an error,
req.emit
is not a function. I can reproduce in our application, but having difficulty creating a minimum sample. This is a call against an HTTPS endpoint that is returning a 500 error.The text was updated successfully, but these errors were encountered: