New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected UnhandledPromiseRejection during runtime #2830
Comments
Hi - please try to use the issue template when raising issues. Do you have any concrete instances of such a crash to share to help identify where changes are needed? |
Hi @knolleary , Yes, I have a running instances on Heroku, but unfortunately the only message I get in console is:
The running configuration is: Unfortunately, this happens totally random and in all the nodes, so I cannot detect better where is the problem. |
I saw this behaviour this week-end, testing nodejs 15.12.0 (node-red 1.2.9).
I don't think it is a node-red issue, plugins developers have to catch exception properly. |
@S200124 without further info on which node caused we cannot look into your particular concern. @knolleary, @dceejay regarding the OPs suggestion of "set an option to --unhandled-rejections=warn", should we consider adding an This might work for cases where an old contrib node works fine in (for example) nodejs12 but crashes node-red under v16 (& therefore holding a user back from upgrading node/node-red)? Otherwise we should ...
|
It does have some appeal - but I'm not really sure it's a good idea to enable something like this that people may "just enable" to try to stop their flow crashing due to a bad node when really the node should be fixed. |
Hi,
due to the last modifications in NodeJs version 15 (https://nodejs.org/en/blog/release/v15.0.0/#throw-on-unhandled-rejections-33021, nodejs/node#33021) now the default mode for unhandledRejection is changed to throw (from warn).
This sometimes causes some unexpected crash of Node-Red.
A temporary fix could be set an option to --unhandled-rejections=warn or use a version of NodeJs before 15.
The text was updated successfully, but these errors were encountered: