Problem Statement
The default mode changed in Node.js to throw (raise an error unless 'unhandledRejection' hook is set) in Node.js 15. The current default in Sentry, warn, shows a confusing and outdated message.
Solution Brainstorm
To implement throw mode, check if the user had previously set an unhandledRejection handler. If they did, throw and exit, otherwise print the warning.
Additional Context
The current strict mode also does not behave like Node.js. It should not print the warning message, but rather exit immediately.
Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.
Problem Statement
The default mode changed in Node.js to
throw(raise an error unless 'unhandledRejection' hook is set) in Node.js 15. The current default in Sentry,warn, shows a confusing and outdated message.Solution Brainstorm
To implement
throwmode, check if the user had previously set anunhandledRejectionhandler. If they did, throw and exit, otherwise print the warning.Additional Context
The current
strictmode also does not behave like Node.js. It should not print the warning message, but rather exit immediately.Priority
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding
+1orme too, to help us triage it.