Hello,
I use hassio with node-red integration.
I have used node-red integration for some months. Earlier I installed Node-RED Companion from hacs, because I used the Devices node. Today I tried to install ‘node-red-debugger’ from 'palette manager, but it didn’t appear in installed nodes. When I tried to reinstall I got an error, that the ‘node-red-debugger’ already installed. After that I made some new funciton in Node-red. At least I put and set the entity node (which create entity in home assistant). When I duplicate this parameterised node and deploy it, the node-red crashed. The log:
[22:22:54] INFO: Starting Node-RED…
start
node $NODE_OPTIONS node_modules/node-red/red.js “–settings” “/etc/node-red/config.js”
15 Dec 22:22:58 - [info]
Welcome to Node-RED
===================
15 Dec 22:22:58 - [info] Node-RED version: v2.1.4
15 Dec 22:22:58 - [info] Node.js version: v16.13.1
15 Dec 22:22:58 - [info] Linux 5.10.17-v8 arm64 LE
15 Dec 22:23:00 - [info] Loading palette nodes
15 Dec 22:23:05 - [info] Dashboard version 3.1.2 started at /endpoint/ui
15 Dec 22:23:07 - [info] Settings file : /etc/node-red/config.js
15 Dec 22:23:07 - [info] Context store : ‘default’ [module=memory]
15 Dec 22:23:07 - [info] User directory : /config/node-red/
15 Dec 22:23:07 - [warn] Projects disabled : editorTheme.projects.enabled=false
15 Dec 22:23:07 - [info] Flows file : /config/node-red/flows.json
15 Dec 22:23:07 - [info] Server now running at http://127.0.0.1:46836/
15 Dec 22:23:07 - [info] Starting flows
15 Dec 22:23:09 - [info] Started flows
15 Dec 22:23:09 - [info] [mqtt-broker:hassio mqtt broker] Connected to broker: mqtt://localhost:1883
15 Dec 22:23:12 - [info] [server:Home Assistant] Connecting to undefined
15 Dec 22:23:12 - [info] [server:Home Assistant] Connected to undefined
15 Dec 22:23:12 - [red] Uncaught Exception:
15 Dec 22:23:12 - [error] UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason “#”.
What is the problem and how can I solve it?