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
When entering a token that is invalid for HA, node-red crashes and also can't be restarted. This makes it basically impossible to fix the authentication issue in Node-red itself.
To Reproduce
Enter a HA mode with an invalid token and deploy.
Observe that Node-Red disconnects from the browser because it crashes.
Attempt to restart Node-Red manually from the command line.
Observe that it crashes and won't start.
Expected behavior
An error message in Node-Red itself with an option to change the token as needed.
Screenshots
node-red output before the crash (IP address is redacted)
22 Nov 20:50:05 - [info] Starting flows
22 Nov 20:50:05 - [error] [poll-state:ef818ac7e5350794] Error: Entity Id is required
22 Nov 20:50:05 - [info] Started flows
22 Nov 20:50:05 - [info] [server:Home Assistant] Connecting to http://192.168.x.x:8123
22 Nov 20:50:05 - [red] Uncaught Exception:
22 Nov 20:50:05 - [error] Error: Invalid access token for websocket
at /root/.node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:112:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Websocket.connect (/root/.node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:82:23)
Example Flow
No response
This package's version (not the Home Assistant add-on version)
0.47.0
Is Node-RED running in Docker?
No
Node-RED version
3.0.2
Node.js version
18.12.1
Additional context
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
When entering a token that is invalid for HA, node-red crashes and also can't be restarted. This makes it basically impossible to fix the authentication issue in Node-red itself.
To Reproduce
Expected behavior
An error message in Node-Red itself with an option to change the token as needed.
Screenshots
node-red output before the crash (IP address is redacted)
22 Nov 20:50:05 - [info] Starting flows
22 Nov 20:50:05 - [error] [poll-state:ef818ac7e5350794] Error: Entity Id is required
22 Nov 20:50:05 - [info] Started flows
22 Nov 20:50:05 - [info] [server:Home Assistant] Connecting to http://192.168.x.x:8123
22 Nov 20:50:05 - [red] Uncaught Exception:
22 Nov 20:50:05 - [error] Error: Invalid access token for websocket
at /root/.node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:112:29
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Websocket.connect (/root/.node-red/node_modules/node-red-contrib-home-assistant-websocket/dist/homeAssistant/Websocket.js:82:23)
Example Flow
No response
This package's version (not the Home Assistant add-on version)
0.47.0
Is Node-RED running in Docker?
No
Node-RED version
3.0.2
Node.js version
18.12.1
Additional context
No response
The text was updated successfully, but these errors were encountered: