Error handling message: Unauthorized (unauthorized)

I have just started getting the following error in the log file when my wife logs into Home Assistant.using her own user id.

Error handling message: Unauthorized (unauthorized)

If I modify her username and give her Administrator rights the error goes away, but as soon as I revoke Administrator rights it comes back again. I am running version 2020.8.3 but this was also happening with 2020.8.2.

Any ideas on what I can look for to try and fix this problem.

Thanks

I have the same problem. This happens every time that I open the Compagnion-app in my iPhone and refresh the page. Some threads in this forum state that this problem is caused by entities that represent cameras which I don’t have, at least in HA. There is only on camera that is only being accessed by NodeRed directly to the URI, taking a snapshot when someone is ringing the doorbell. The shapshot is sent by mail. There are no entities in HA for this purpose. This is the full error-message:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:102
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 20 august 2022 21:26:55 (2 occurrences)
Last logged: 00:38:42

[281472146059856] Error handling message: Unauthorized (unauthorized)
[281472145908176] Error handling message: Unauthorized (unauthorized)

Any idea?

Exact same here:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:102
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 24. August 2022 um 20:16:54 (1 occurrences)
Last logged: 24. August 2022 um 20:16:54

[281472380234784] Error handling message: Unauthorized (unauthorized)

Any hints?

PS.: Yes i have an cmaera entity. But what needs to be done to prevent that error? thx

I can confirm exactly the same, when my wife opens her companion app on her iPhone, get the above errors.

Any of you submit this as an issue to HA, yet? If so, I can also comment on that. thanks

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:102
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 2:38:44 PM (2 occurrences)
Last logged: 2:42:17 PM

[547355070224] Error handling message: Unauthorized (unauthorized)
[547353099472] Error handling message: Unauthorized (unauthorized)

Thanks for your contribution. Good to see that I’m not the only one suffering from this annoying problem.
With regards to the question, at least not by me. The thing is that a similar problem is described in the manual of the companion-app but this is stating a relationship with entities that are representing camera’s. Although I have a camera configured in HA, I don’t see a relationship with this. The reason is that against the expectations after I removed the entity the problem is still occurring. The camera-picture is now obtained in NodeRed directly and also processed, so HA is not involved anymore. So if there are enough reporting the same problem, we will have a convincing case for submitting this to HA separately.

Same here

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:102
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 16:01:45 (101 occurrences)
Last logged: 18:58:57

[547725142688] Error handling message: Unauthorized (unauthorized)
[548069380480] Error handling message: Unauthorized (unauthorized)

1 Like

Me to. Slightly different Source though…

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:103
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9 September 2022 at 22:59:10 (9 occurrences)
Last logged: 07:44:51

[140321367355552] Error handling message: Unauthorized (unauthorized)
[140321368198160] Error handling message: Unauthorized (unauthorized)
[140321628717120] Error handling message: Unauthorized (unauthorized)
[140321400199376] Error handling message: Unauthorized (unauthorized)
[140321232215712] Error handling message: Unauthorized (unauthorized)

Same problem as well. Only recently became an issue as I’ve shifted to using the Person support for location instead of doing it manually with Bayesian.

Previously, everyone logged in with my account; now they have their own accounts. I can log them in just fine when they’re on prem. I can also disconnect their wifi and log them in via Nabu Casa with no issues.

It appears that, if their session token expires and they’re not local, they cannot successfully log in.

Interestingly, once this happens (and they’re remote), the remote URL is no longer available so there’s no way to log them back in (via Nabu Casa) until they get home.

I have the same issue as well!

I’m also having the same problem; 93 occurrences in the last 4 hours…

Having the same issue from the iPhone of my wife

Same issue. Did this thread go cold?

I would recommend to create an issue here: Sign in to GitHub · GitHub
I am following this thread because I had a similar problem in the past which is resolved long ago and I am not sure if everyone here is till having a problem, but in any case an issue is the best place to let the Developers look at your problem.

I face the same issue.
I searched on GitHub for an issue, but couldn’t find any.

Did someone found a solution meanwhile? Or raised an issue on Github.
Please let me know

1 Like

Same here… With Admin no Problem… without the API Token didnt Work in Streamdeck etc.
Screenshot 2023-12-31 122055

Same for me. WHen I give to user Administrator privileges, the error goes away.
Any news on this???

2024-06-15 21:19:20.677 ERROR (MainThread) [homeassistant.components.websocket_api.commands] Refusing to allow Dashboard to subscribe to event dwains_dashboard_homepage_card_reload

2024-06-15 21:19:20.677 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection] [547219428544] Error handling message: Unauthorized (unauthorized) Dashboard from 192.168.XX.XX (Mozilla/5.0 (Linux; Android 9; Lenovo TB-X705F Build/PKQ1.190319.001; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/126.0.6478.71 Safari/537.36 Home Assistant/2024.6.1-12936 (Android 9; Lenovo TB-X705F))