unable to catch an error originating from a request
trying to test out failure logic, i keep encountering
error: Uncaught (in promise) TypeError: error reading a body from connection
with no further details. tried to look it up online with no success; i have .on("error", ...)
handlers setup everywhere where an error may occur.3 Replies
in addition, this happens when killing the server the request is made to.
Do you have a reproduction code?
If you add
req.on("error"
inside the http.createServer
this error should be catchable