WTH are those Login Attempt failed?

I also see this problem regularly.

Everything works. You just get that annoying message.

It mainly happens when I view a UI containing a camera. Maybe always now I think about it.

For me not all the time, mostly happens when I close the companion app from that specific camera page… But not always :wink:

There is an issue open for this, which is still under investigation. I also have the issue. Feels to me like a timing issue of the tokens

Can you point me to that GitHub issue so I can subscribe?

1 Like

Ow , seems a long ongoing issue already

I get these every day.

Every day for 2 years for me.

1 Like

Just curious for those who have this issue, are you showing camera previews in your Lovelace UI?

1 Like

Yea a couple of times a day everyday for me.

camera previews??? not sure what that means…if you mean “Preload stream”, I don’t.

Every camera has a temporary url like /api/camera_proxy/camera.birdcam?token=extremelylongtokenyesitsverylongnoidontwantosharemine. If a client tries to access that url via an outdated token, the login attempt failed message pops up.

1 Like

Thanks. How would one determine this is the case? and then fix it?

They would fix it by providing an auth header as well as a URL param, so if outdated requests are authenticated properly, it wouldn’t mind it.

OK. I just opened up Chrome “Inspect” and on my home page there is a picture I have that uses the API you mentioned. As I was looking at the, the token actually changed!!! And in the course of composing this, it has changed yet again…
<img src="/api/camera_proxy_stream/camera.local_picture?token=03acc92blah blah blah" alt="Preview of the Local Picture camera.">

The fact that the token changes itself, does that mean this particular camera is not the problem of login attempt failures?

Well it should change itself, but if it fetches the image, and forgets to get the latest URL means any camera could be the cause. Anything that displays the entity-picture could be the problem (including the entities tab).

I get these from my tablet running HADashboard, whenever HA is restarted.

Oh, and my dashboard does have a webcam image on it.

The token does change. This is updated by the websocket. I think a way around this might be to replace the image with a placeholder when the socket disconnects or the user leaves the window/tab.

There may be a way of detecting whether the tab goes to sleep which I think is the issue, as well as disconnection. (although these might be one and the same)

I think the issue is all about timing with that 500ms or so that makes the image refresh

1 Like

Yes, I have multiple camera previews in my lovelace UI, which get frequently used.

Yes. 4 cameras configured with generic camera config and h.264 RTSP->AVC streams using the streaming component. Some devices use the live view, some don’t.

How do I do that for reverse proxy? These notifications are crazy.