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 throwing an exception in a callback handler (e.g. in response), http2 silently does nothing, except it emits streamClosed with an errorCode of NGHTTP2_NO_ERROR.
Expected behaviour; if I throw at http2, log to stderr, then kill the process
The text was updated successfully, but these errors were encountered:
Ugh, this happened when running unit tests with mocha, I never did a simple standalone test, although I obviously should have.
After having investigated a bit now, I realize that mocha sets an 'uncaughtException' handler which swallows the error and continues execution (contrary to what the Node.js documentation tells you to do). By removing all 'uncaughtException' handlers when running the same test within mocha, I get the correct behavior; stderr + process exit.
Since this is a mocha issue and not http2 (or Node.js for that mattter), I'll close this issue. Sorry for wasting your time 😔
When throwing an exception in a callback handler (e.g. in
response
),http2
silently does nothing, except it emitsstreamClosed
with anerrorCode
ofNGHTTP2_NO_ERROR
.Expected behaviour; if I throw at
http2
, log to stderr, then kill the processThe text was updated successfully, but these errors were encountered: