aidasp
aidasp3mo ago

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.
No description
3 Replies
aidasp
aidaspOP3mo ago
No description
aidasp
aidaspOP3mo ago
in addition, this happens when killing the server the request is made to.
bartlomieju
bartlomieju3mo ago
Do you have a reproduction code? If you add req.on("error" inside the http.createServer this error should be catchable