New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERROR: Unexpected token N in JSON at position xxx in MainThread frontend js - Uncaught SyntaxError #12628
Comments
Update: I found that when logged into the GUI it will say "Service system_log/write called." in the bottom left corner at the same time the Uncaught JSON error occurs. |
The issue is 99% something to do with my sensors. (I think). My sensor files are 20 separate .yaml files joined using the Merge List: My sensors: https://github.com/Genestealer/Home-Assistant-Configuration/tree/master/includes/sensors |
Ah ha! May be due to my older version of "home-assistant-frontend", as per my errors above I have 201802090 and the older Python 3.4.2. I see frontend/init.py states requirment home-assistant-frontend==20180221.1 Looks like: I need to update my virtualenv Python Python 3.5.2 to Python 3.6. Instructions and more. |
Moved to a Docker Installation on Ubuntu 17.04, still same issue.
|
Closing, going back to my original build of hass in a VM.
|
Home Assistant release (
hass --version
):0.63.3 (Python virtual environment, running with root)
Python release (
python3 --version
):Python 3.5.2
Component/platform:
MainThread
Description of problem:
Home Assistant will not allow you to login, if already logged in, it simply disconnects.
Error messages:
Also failed when trying setting frontend to use javascript_version: es5
Removing all my sensors helps for a time, but only delays the crash.
Adding them back, one at a time (restarting home assistance each time) to find the issue does not help, as I can add them all back, log into hass only for it to then randomly error on its a few moments later and if you refresh it shows the login screen and becomes stuck on "Loading Data".
Even creating a new Linux server with new Python virtual environment has not effect and issue is repeatable.
I tired, removing the user password, removing SSL, changing the port back to 8123, all on IE, chrome, chrome incognito, separate computers, Android, but to no effect.
Also tried disabling MQTT in case the JASON error was coming from there.
My Home Assistant Configuration: https://github.com/Genestealer/Home-Assistant-Configuration
The text was updated successfully, but these errors were encountered: