Home Assistant Community

Node Red stopped working after upgrading to 0.83.1

#1

warning: Node-red baby here

So soon after I upgraded to 0.83.1, I saw my hassio logs flooding with

Login attempt or request with invalid authentication from xx.201.102.140
8:53 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from xx.201.102.140
8:53 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from xx.201.102.140
8:53 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from xx.201.102.140
8:53 PM components/http/ban.py (WARNING)
Login attempt or request with invalid authentication from xx.201.102.140
8:53 PM components/http/ban.py (WARNING)

and under Node-red I have these logs

30 Nov 20:54:10 - [error] [server-state-changed:XX] Unauthorized
30 Nov 20:54:10 - [error] [server-state-changed:XX] Unauthorized
30 Nov 20:54:10 - [error] [server-state-changed:XX] Unauthorized
30 Nov 20:54:10 - [error] [server-state-changed:XX] Unauthorized
30 Nov 20:54:10 - [error] [server-state-changed:XX] Unauthorized
30 Nov 20:54:10 - [error] [server-state-changed:XX] Unauthorized

and this is what I have on the server node,

I can feel it has something to do with the url,
can some point me the mistake I am making.

node_red

0 Likes

#2

This is what fixed me up…

Replace node-red-contrib-home-assistant with node-red-contrib-home-assistant-websocket

It has to do with the authentication. I switched to long lived tokens.

0 Likes

#3

so you removed the old one and installed the websocket one? was there anything to do after that? where did you have to input your long lived tokens?

0 Likes

#4

Seems like the websocket was already installed.
I had only few flows in my node red, So I ended up uninstalling node red, took a backup of the folder and deleted the node red folder, reinstalled it. Copied the settings.js to the newly created folder. Now I got a new option which says “I use hass.io” under the home assistant server configuration. I didn’t have to put anything else. I tried to import my old flows but that messed-up things again, so I recreated the flows again.

0 Likes