Closed
Description
- Version: 6.4.0
- Platform: Windows 64bit
- Subsystem: _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.
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