Closed HeimdallMidgard closed 3 years ago
Update home assistant to the latest version, and it should work.
I am using the newest version. Everything is up to date.
What version of HA are you using? What version of kiosk-mode are you using?
same errors on 0.117.5 but all works
HA: 0.117.5 Supervisor: 2020.11.0 Docker: 19.03.13 Swipe: 1.3.0 Kiosk Mode 1.4.5 Everything up to date.
Please, try pre-release version 1.3.1. If you use HACS you will need to select "Reinstall" and enable "Show beta versions" and select v1.3.1.
If this is still an issue, be sure that your system is using the correct version by checking that your browser's dev tools console reports version 1.3.1. If it doesn't, clear your cache and/or reinstall.
Report back and let me know if this is still an issue or if 1.3.1 solves it. Thank you.
There is also a beta release for kiosk-mode as well. If you're still having issues with kiosk-mode after updating to it's beta, please report the issue on that project and not here.
Edit: kiosk mode fix is now in a full (non-beta) release
@fufar @HeimdallMidgard
Have either of you tried the beta? Is this still an issue on the beta?
I don't want to push the beta changes unless they actually solve the problem. As I am unable to replicate this error I am reliant on those who do have this issue to provide information.
I use 1.3.1
https://dns.ru/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:33:5 Uncaught TypeError: Cannot read property 'querySelector' of undefined
https://dnsr.ru/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:33:44 Uncaught TypeError: Cannot read property 'shadowRoot' of null
so error still here
Using 1.3.1. Newest HA. Kiosk is also newest (1.47)
Logger: frontend.js.latest.202011112 Source: components/system_log/init.py:193 First occurred: 23. November 2020, 20:11:42 (8 occurrences) Last logged: 21:38:28
http://192.168.1.3:8123/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:33:1 TypeError: x is undefined http://192.168.1.3:8123/hacsfiles/kiosk-mode/kiosk-mode.js:15:105 TypeError: h.shadowRoot.querySelector(...) is null http://192.168.1.3:8123/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:33:40 TypeError: E is null
I see as well some errors in the log with 1.3.1 on ha 0.118.3
http://192.168.200.33:8123/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:33:43 TypeError: null is not an object (evaluating 'E.shadowRoot')
Okay, so @deluxestyle's error I can understand and can put a fix in for, but if you weren't having issues before updating to the beta there is no reason to use it.
@HeimdallMidgard and @fufar, your errors are even more confusing. Elements that should exist well before the swipe-navigation resource even gets loaded, just don't exist in your case. 1.3.1 added a delay to wait for those items if for some reason they don't exist. So, some questions for both of you:
I had the error already with 1.3.0 and updated after I found this issue here to 1.3.1
@HeimdallMidgard Again, this isn't the place for kiosk-mode issues, but your issue on kiosk-mode is that one of the main elements, like one of the very first elements to render "home-assistant-main"
, doesn't exist.
These all sound like conflicts with another addon that is causing the interface to rebuild. Not knowing the exact cause and without being able to recreate the issue makes this difficult to try and troubleshoot. Any fix I put in for this needs to not affect the performance of other users that don't have this issue.
I have
HACS front:
Yandex icons
Purifier Card
Vacuum Card
Battery Entity Row
Mini Media Player
Lovelace Swipe Navigation
Fullscreen Card
Mini Graph Card
Kiosk Mode
HACS integrations:
Yandex.Station
zigbee2mqtt Networkmap
Xiaomi Mi Gateway Radio Media Player
Xiaomi Mi Air Purifier, Air Humidifier, Air Fresh and Pedestal Fan Integration
Monitor Docker
Gismeteo Weather Provider
browser_mod
HASS:
ESPHome
File editor
Grafana
Home Assistant Google Drive Backup
InfluxDB
Mosquitto broker
NGINX Home Assistant SSL proxy
Valetudo Mapper
Xiaomi Mi Scale
Zigbee2mqtt
Im not using cardmod or layout-card
I alse have "https://.../hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:19:63 TypeError: null is not an object (evaluating 't.shadowRoot')"
Home Assistant 0.118.3 Lovelace Swipe Navigation version 1.3.0
seems my issue is solved with 1.3.2
I confirm 1.3.2 works 👍
for me 1.3.2 still get errors
for me 1.3.2 still get errors
Maybe cache? Please clear resources
As mentioned earlier in this thread, their errors are not the same as yours. This is the problem with making an issue with a title of "Error Message". Anyone with any error will comment in the same thread even if they are unrelated.
Your issue was a small bug, the remaining issue is what this thread was originally about. Fufar and Heimdall have issues with their HA instances where elements either don't exist when they should or another addon they are using is causing everything to be rebuilt after Swipe-Nav is loaded.
I'm doing what I can to try to recreate the issue or work out a fix that doesn't effect user's that don't have this issue.
It may have something to do with browser-mod (see here). But I haven't had a chance to check it out yet.
With browser-mod installed and even more testing, I am still unable to reproduce the errors. Nonetheless, I have released another beta (pre-release 1.3.3) related to this issue. Please, let me know if it helps.
@fufar I would also be interested to know if the issues still exist if you disable browser-mod and the full error messages you are receiving now if they still exist. Thank you!
no, i still have error but i notice something, shame on me that i didn't notice this before :(
First occurred: 13:35:40 (2 occurrences)
Last logged: 13:35:40
its just after i restarted ha, no errors after.
full message the same
https://dnsname.com/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:33:5 Uncaught TypeError: Cannot read property 'querySelector' of undefined
after disabling browser mod looks that errors disappeared
Your system isn't using the latest version (v1.3.3). Could be because it didn't upgrade, cache issues, or another machine/device is still using the old cached version. There is no querySelector
at 33:5
in the in the latest version.
I see this error too:
Logger: frontend.js.latest.202011112
Source: components/system_log/__init__.py:193
First occurred: 1:25:48 PM (1 occurrences)
Last logged: 1:25:48 PM
https://hassvmdavidrusting.duckdns.org/hacsfiles/lovelace-swipe-navigation/swipe-navigation.js:19:64 Uncaught TypeError: Cannot read property 'shadowRoot' of null
Please, update and try the latest version.
If this is still an issue, be sure that your system is using the correct version by checking that your browser's dev tools console reports the correct version number. If it doesn't, clear your cache and/or reinstall.
Browser_mod wasn't the issue here, but having it installed caused the issue to be more apparent.
Report back and let me know if this is still an issue or if this has been solved. Thank you.
There have been many changes in the last few versions and the issues mentioned here should no longer be a problem. Due to the fact that, aside from my post above, there has been no activity for over a month and the generic title made this a catch all for any issue that creates an error, I am closing this.
If you're still having issues or errors in your log don't hesitate to make a new issue.
Hello, I get this error message in my Home Assistant logs. The addon still works anyway. Maybe its a bug regarding the kiosk mode Integration? https://github.com/maykar/kiosk-mode
Logger: frontend.js.latest.202010214 Source: components/system_log/init.py:193 First occurred: 17:14:20 (5 occurrences) Last logged: 17:38:20