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
By default, when an unhandled rejection occurs, BugSnag will send an error report, then print the error to the console. The process remains alive, as per Node’s current default behavior.
Despite this comment is useful, it is partially incorrect as Node's current default behaviour is not to keep the process alive, but to terminate it with exit code 1. This behavior was introduced in NodeJS version 7, so it is well established by now.
In the best case, this is inaccurate documentation, but it is also violating the principle of least surprise. I don't think adding a library like Bugsnag should change what Node does by default.
Environment
Bugsnag version: 7.20.2
NodeJS version: v18.12.1
The text was updated successfully, but these errors were encountered:
Thanks for raising, this is something that we are aware of. We're working on some improvements in our Node support which will address this. A release for this is coming in the next quarter. We will let you know as soon as we have an update.
Thank you for your patience. Please upgrade to the latest version, which should fix the issue you are seeing with unhandled promise rejections. After updating, if the issue persists then please let us know and we can investigate further.
Describe the bug
In NodeJS, when an unhandled promise rejection takes place Bugsnag will report the error but the process will remain alive.
This is documented in the Bugsnag documentation:
Despite this comment is useful, it is partially incorrect as Node's current default behaviour is not to keep the process alive, but to terminate it with exit code 1. This behavior was introduced in NodeJS version 7, so it is well established by now.
In the best case, this is inaccurate documentation, but it is also violating the principle of least surprise. I don't think adding a library like Bugsnag should change what Node does by default.
Environment
The text was updated successfully, but these errors were encountered: