Closed Kilill closed 7 months ago
Thank you for taking the time to file a bug report and the steps to reproduce it. That is very much appreciated!
I don't think a misconfigured node should be able to crash Node Red that hard...
You are absolutely right - this will have top priority next time I have free time to work on the node.
I have one handy hint for this case when a node misbehaves. Just set the environment variable NODE_RED_ENABLE_SAFE_MODE=true
before launching node red. This will allow you to load the node-red editor and fix/change your flows but it won't start the flows until you hit the deploy button. This way you don't have to edit your flows.json manually.
Edit: If you think you are up for it you could make a proposal on how to fix this problem. Then PRs are most welcome š
Edit: If you think you are up for it you could make a proposal on how to fix this problem. Then PRs are most welcome š
I would if i was a lot more fluent in node and js :-) and how to build a node... Did have a look though and as far as my limited understanding goes it seems that the promise on line 435 of smxstate-node.js needs to be wrapped somehow since afaik exceptions are not propagated properly out of an async/promise ...
It was missing a simple .catch()
in the promise execution chain. It should be fixed in Release V1.3.3!
had an issue where an action was misspelled/missing which resulted in the node throwing an exception and permanently crashing Node Red ie. Node Red could no longer be restarted since it crashes again on the same issue
Had to manually edit the flows.json file and remove the xstate entry.
I don't think a misconfigured node should be able to crash Node Red that hard...
Node-Red running as a service on ubuntu 22.04:
How to reproduce:
Observ that this will most proably crash NodeRed so make backup of .node-red/projects/Home/flows.json
Log output from node red: