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