SecurityError for History Push

This error clears from the log following an HA restart and has only appeared occasionally, but when it shows up it logs dozens per second. Anyone seen this before, or have a guess on its origin?

2019-10-31 08:08:02 ERROR (MainThread) [frontend.js.latest.201910022] http://my.url/frontend_latest/app.37dcadb7.js:724:266382 SecurityError: Attempt to use history.pushState() more than 100 times per 30 seconds

see the same issue but only if I use the 2.0 ios App

Thanks. I’ll file an iOS Companion App issue on GitHub.

Thank you. I guess it could be as well related to compact header

What makes you think it might be related to compact header? If you uninstall or remove CCH from your resources does it still happen?

it happens when I swipe between the different lovelace views. If I remove cch then I’m not able to slide and I don’t get the error.
I’m not sure if cch is causing the issue. It happens only when I swipe

could you make an issue on the github and fill the needed info, also include whether this happens to you with just the swipe animation or with others as well.

done. I’ve included as well a gif which shows when the error happens

where is the link to this please? I have this flooding the logs:

SecurityError: Attempt to use history.pushState() more than 100 times per 30 seconds

accompanied by:

0-01-08 10:26:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2882805840] Client exceeded max pending messages [2]: 512
2020-01-08 10:26:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2882805840] Client exceeded max pending messages [2]: 512
2020-01-08 10:26:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2882805840] Client exceeded max pending messages [2]: 512
2020-01-08 10:26:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2882805840] Client exceeded max pending messages [2]: 512
2020-01-08 10:26:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2882805840] Client exceeded max pending messages [2]: 512
2020-01-08 10:26:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2882805840] Client exceeded max pending messages [2]: 512
2020-01-08 10:26:37 ERROR (MainThread) [homeassistant.components.websocket_api.http.connection.2882805840] Client exceeded max pending messages [2]: 512

etc etc…

note that I use CH now, not CCH… not sure at all if that’s related

has this issue been solved somehow< Im still seeing it in the log and have no idea what’s causing it or when it happens, other than the timestamp:

2020-02-25 03:41:59 ERROR (MainThread) [frontend.js.latest.202001303] https://redacted.duckdns.org:port/frontend_latest/app.119d932a.js:726:257665 SecurityError: Attempt to use history.pushState() more than 100 times per 30 seconds

also, this is preceded and followed by te Plex sensor not being able to reach the server

2020-02-25 03:43:56 ERROR (MainThread) [plexwebsocket] Websocket connection refused, retrying in 300s: Cannot connect to host 192-168-1-81redacted.plex.direct:32400 ssl:None [Connect call failed ('192.168.1.81', 32400)]

again, not sure at all if this is related, but it’s all I cn see in the log.

then again, it might be Custom Header after all, I now see this in inspector:


how to go about that @mayker ?

If you suspect something is causing your error, disable it and see if the error persists.