frontend icon indicating copy to clipboard operation
frontend copied to clipboard

ERROR [frontend.js.latest.202112290] core.360c502d.js:1:9840 3

Open Mariusthvdb opened this issue 3 years ago • 31 comments

Checklist

  • [X] I have updated to the latest available Home Assistant version.
  • [X] I have cleared the cache of my browser.
  • [X] I have tried a different browser to see if it is related to my browser.

Describe the issue you are experiencing

not even experiencing an issue, but this keeps showing I the log. Really sorry I havent been able to connect it to a user action, but there's no true clue how to go about debugging this further without instructions

Describe the behavior you expected

no error....

Steps to reproduce the issue

  1. as said, not sure

...

What version of Home Assistant Core has the issue?

2022.2.0.dev20220103

What was the last working version of Home Assistant Core?

not sure but at least the last week of dev

In which browser are you experiencing the issue with?

any

Which operating system are you using to run this browser?

MacOS 12.0.1 12.0.1 Monterey 12.0.1

State of relevant entities

No response

Problem-relevant frontend configuration

No response

Javascript errors shown in your browser console/inspector

2022-01-03 10:06:14 ERROR (MainThread) [frontend.js.latest.202112290] https://mydomain/frontend_latest/core.360c502d.js:1:9840 3

Additional information

No response

Mariusthvdb avatar Jan 03 '22 11:01 Mariusthvdb

I too am getting this error.

Logger: frontend.js.latest.202112290
Source: components/system_log/__init__.py:189
First occurred: 22:35:12 (1 occurrences)
Last logged: 22:35:12

https://XXX/frontend_latest/core.360c502d.js:1:9840 3

tempus2016 avatar Jan 03 '22 22:01 tempus2016

still seeing this in 2202.2.0b0 so not a dev install fluke, purposely updated to the beta to check.

Mariusthvdb avatar Jan 27 '22 10:01 Mariusthvdb

still seeing this in 2202.2.0b0 so not a dev install fluke, purposely updated to the beta to check.

Can you please provide the exact error location now with the beta. I should have the same, so perhaps we can narrow down the error based on the code location, even though the coding is minified.

spacegaier avatar Jan 27 '22 11:01 spacegaier

it moved to:

frontend_latest/core.9023daf4.js:1:9840 3

in my setup

Mariusthvdb avatar Jan 27 '22 11:01 Mariusthvdb

So that means it is that green line here, which I think is from home-assistant-js-websocket.

grafik

spacegaier avatar Jan 27 '22 11:01 spacegaier

tbh, I dont understand where you see that? But, now I check inspector again, I see the error being listed again. Could it be this happens upon loading Inspector??

not sure but I can see this:

Schermafbeelding 2022-01-27 om 13 52 17

which is dashboard 19 ..?

Mariusthvdb avatar Jan 27 '22 12:01 Mariusthvdb

I just looked in the coding of that JS file at the location specified in the error message (line 1, position 9840) and then "prettied" the coding.

spacegaier avatar Jan 27 '22 13:01 spacegaier

not sure what you're saying now, do you mean you have a 'fix'? or do you want me to do anything?

also, which dashboard is 19 referring to? how can I count my dashboards?

Mariusthvdb avatar Jan 27 '22 14:01 Mariusthvdb

No fix and nothing to do. Someone else needs to chime in to narrow down the issue. Some connection seems to break and then the error gets raised.

That is line 19, column 6545 in dashboard file (I think). You can click on it.

spacegaier avatar Jan 27 '22 14:01 spacegaier

@Mariusthvdb the "Verzoek" bit, is that from an addon called logviewer served via ingress? I can't see the full URL.

And did you re-open the dashboard before this error occurred ?

balloob avatar Feb 03 '22 15:02 balloob

yes it is, https://github.com/hassio-addons/addon-log-viewer and is up to date 0.12.2

but it has become way more sporadic... I've only seen it once since this mornings update to latest dev build, and it moved to core.25b6fb5a.js:1:9840 3

even tried with 2 windows now, both on Logviewer didnt make it happen. so a bit of a mystery.

Mariusthvdb avatar Feb 04 '22 07:02 Mariusthvdb

right, so this is odd, I see logviewer:

2022-02-04 10:04:38 ERROR (MainThread) [frontend.js.latest.202202030] http://hassio.local:port/frontend_latest/core.9a12ab6a.js:1:9840 3

but also: Schermafbeelding 2022-02-04 om 10 09 38

note 9840 is now 9841? Or is this something else (has always been 9840 until now)

clicking that results in:

Schermafbeelding 2022-02-04 om 10 10 45

full text of that section is enclosed frontend_error.txt

Mariusthvdb avatar Feb 04 '22 09:02 Mariusthvdb

It means that something (browser-mod?) was sending a message to the backend, but the connection was closed.

It looks like this is from a custom card, and not core frontend.

bramkragten avatar Feb 04 '22 10:02 bramkragten

yes, this one indeed, the others were from logviewer though?

Mariusthvdb avatar Feb 04 '22 10:02 Mariusthvdb

Could this be happening when the HA tab is hidden/inactive for 5 minutes? Can you maybe turn off "auto close connection" option and see if it is gone then?

image

bramkragten avatar Feb 04 '22 12:02 bramkragten

sure, will try. this is a per browser setting isnt it? as is the error probably?

btw, its back in some higher frequency:

Logger: frontend.js.latest.202202030
Source: components/system_log/__init__.py:190 
First occurred: 10:04:38 (24 occurrences) 
Last logged: 14:03:15

http://hassio.local:port/frontend_latest/core.9a12ab6a.js:1:9840 3
:0:0 Script error.

and on 9840 ;-)

logviewer:

2022-02-04 14:09:07 ERROR (MainThread) [frontend.js.latest.202202030] http://hassio.local:port/frontend_latest/core.9a12ab6a.js:1:9840 3
2022-02-04 14:09:07 ERROR (MainThread) [homeassistant.components.hassio.handler] /ingress/validate_session return code 401
2022-02-04 14:09:07 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /ingress/validate_session - 

and I do see ResizeObserver loop completed with undelivered notifications.

accompanied by:

022-02-04 15:04:47 ERROR (MainThread) [frontend.js.latest.202202030] :0:0 Script error.

on each keystroke c/e, to call the quick bar

guess its not the close connection setting:

Logger: frontend.js.latest.202202030
Source: components/system_log/__init__.py:190 
First occurred: 10:04:38 (33 occurrences) 
Last logged: 15:05:31

http://hassio.local:port/frontend_latest/core.9a12ab6a.js:1:9840 3
:0:0 Script error.

Mariusthvdb avatar Feb 04 '22 13:02 Mariusthvdb

not really sure the issue @zacwest linked above it the issue at hand here. As Ive been trying to narrow down the source, I disabled Kiosk Node plugin, and havent seen the error since. Would be nice if people that responded with a +1 here could check/confirm they also use Kiosk mode, and if yes, when disabled see the error gone?

I filed 2 issues before in Kiosk mode, maybe these are related. Bram might be able to recognize the error and its meaning?

https://github.com/maykar/kiosk-mode/issues/84 https://github.com/maykar/kiosk-mode/issues/75

Seems Ryan has left the repo for some time now, not sure if maintenance will be up anytime soon there

Mariusthvdb avatar Feb 09 '22 22:02 Mariusthvdb

@Mariusthvdb I think you are right, I have Kiosk Mode plugin installed and removing it solved this issue for me

skynet01 avatar Feb 10 '22 06:02 skynet01

I do not use kiosk mode and have the error.

tempus2016 avatar Feb 10 '22 07:02 tempus2016

I am afraid you're right... just updated to todays nightly and see

2022-02-10 08:42:47 ERROR (MainThread) [frontend.js.latest.202202030] http://mydomain/frontend_latest/core.9a12ab6a.js:1:9840 3

in the startup log again. too bad. it has become less frequent, but now we can say for sure Kiosk mode doesnt cause it. thats a good thing ;-)

Mariusthvdb avatar Feb 10 '22 07:02 Mariusthvdb

Hahah yea.. same for me. It came back today even with kiosk uninstalled.

skynet01 avatar Feb 10 '22 18:02 skynet01

Logger: frontend.js.latest.202202030 Source: components/system_log/init.py:190 First occurred: 9:26:21 PM (7479 occurrences) Last logged: 9:51:26 PM

:0:0 Script error.

This is the same error?

maddeuce avatar Feb 16 '22 05:02 maddeuce

I have this error for couple months now no one can tell me what wrong. Everyone say is frontend intergradion. Will guess what I turn off all off and still happen. Usually it happen once or twice for 2 to 10 minutes per day but log up to 200k errors. But I just notice 3hrs ago it been reoccurring non stop. It slow down about 10 error per sec. Before I seem up to 5000 error per sec. At one time my homeassistant.log file is 125mb. That an txt file 125mb fill with this error log.

maddeuce avatar Feb 16 '22 05:02 maddeuce

its still a bit of a mystery indeed. I recently discovered it even happens when all front-end device are closed, so no HA interface is showing anywhere. How could a frontend error fire at all. I then, accidentally, noticed the error happening when I called 'Hey google, do..' Thought I had found the issue, because ofc we do that also when all devices are closed. But, unfortunately, it didnt reproduce reliably after that...

so still at a loss as for the reason this keeps happening.

Maybe it's a timing issue too, and we can prevent it from happening by loading a custom card via the frontend method. I have just done so with Kiosk mode, and haven't seen any of the Kiosk mode related errors since that, same https://github.com/maykar/kiosk-mode/issues/84#issuecomment-1041446352

EDIT

Never mind.... they're back.

Mariusthvdb avatar Feb 16 '22 08:02 Mariusthvdb

Logger: frontend.js.latest.202204200
Source: components/system_log/__init__.py:190 
First occurred: 10:31:46 (647 occurrences) 
Last logged: 10:47:56

http://hassio.local:port/frontend_latest/core.8ff2e18e.js:1:10023 3
:0:0 Script error.

Mariusthvdb avatar Apr 23 '22 08:04 Mariusthvdb

I get a bunch of errors of the same source after editing automations:

Logger: frontend.js.latest.202205041
Source: components/system_log/__init__.py:190 
First occurred: 22. Mai 2022, 22:00:27 (99 occurrences) 
Last logged: 06:45:42

:0:0 Script error.

pedolsky avatar May 23 '22 05:05 pedolsky

Im getting the following errors:

Logger: frontend.js.latest.202205041
Source: components/system_log/__init__.py:190
First occurred: May 22, 2022 at 7:30:38 AM (19 occurrences)
Last logged: 8:25:13 AM

http://192.168.1.118:8123/frontend_latest/core.a0afd420.js:1:9430 Uncaught Error: Suspend promise not set
https://home.maxistviews.com/frontend_latest/core.a0afd420.js:1:10014 Uncaught 3

maxshcherbina avatar May 23 '22 12:05 maxshcherbina

My logs are plagued by this sort of error. Tried removing cards with more complex cofigs but didn't work. Seems to happen when opening the app or browser reload (but not when cached).


Logger: frontend.js.latest.202205041
Source: components/system_log/__init__.py:190 
First occurred: 20:10:58 (7 occurrences) 
Last logged: 21:24:46

http://192.168.1.120:8123/frontend_latest/core.a0afd420.js:1:10024 3

fenty17 avatar May 23 '22 20:05 fenty17

I'm a little late to the party but am having the same issue. I finally noticed it when I decided to try to look into why my Eufy integration stopped working recently and came across this in my logs.

Logger: frontend.js.latest.202206010
Source: components/system_log/__init__.py:190
First occurred: 10:47:43 (7 occurrences)
Last logged: 23:28:56

https://ha.devnulls-bitbucket.com:8123/lovelace:0:0 Uncaught
https://ha.devnulls-bitbucket.com:8123/lovelace/0:0:0 Uncaught
https://ha.devnulls-bitbucket.com:8123/developer-tools/yaml:0:0 Uncaught
https://ha.devnulls-bitbucket.com:8123/config/dashboard:0:0 Uncaught

phiberoptick avatar Jun 04 '22 07:06 phiberoptick

I had a similar issue when trying to edit cards on Lovelace UI - ending up needing to remove BrowserMod integration and problem went away.

image

Source: components/system_log/__init__.py:190
First occurred: 10:35:08 AM (13 occurrences)
Last logged: 10:35:08 AM

http://HA.URL:8123/frontend_latest/core.446aadfa.js:1:10014 Uncaught 3 ```


cplagz avatar Jun 09 '22 03:06 cplagz