question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error on first run

See original GitHub issue

I am getting the following error on the Web UI for the add-on.

An Error has occured.
TypeError: Cannot read properties of null (reading 'slice')
{}

at vt (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/main.a4706f15.chunk.js:1:64661)
at div
at div
at St (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/main.a4706f15.chunk.js:1:68139)
at Nt (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/main.a4706f15.chunk.js:1:69461)
at div
at Tt (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/main.a4706f15.chunk.js:1:70013)
at d (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/2.12a24de8.chunk.js:2:3364)
at h (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/2.12a24de8.chunk.js:2:2605)
at s (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/2.12a24de8.chunk.js:2:188264)
at n (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/main.a4706f15.chunk.js:1:73253)
at div
at Ut (http://192.168.1.43:8123/api/hassio_ingress/lRrcME4GsqYCfxpH_-DpHzigyLkhnDiXNzl9-rt6sqM/web/static/js/main.a4706f15.chunk.js:1:74174)****

This is the Log for the add-on

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Python 3.9.12
INFO:     Started server process [65]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
INFO:     172.30.32.2:49428 - "GET /web/ HTTP/1.1" 200 OK
INFO:     172.30.32.2:49428 - "GET /web/static/css/main.23eb95f4.chunk.css HTTP/1.1" 200 OK
INFO:     172.30.32.2:49428 - "GET /web/static/js/main.a4706f15.chunk.js HTTP/1.1" 200 OK
INFO:     172.30.32.2:49430 - "GET /web/static/js/2.12a24de8.chunk.js HTTP/1.1" 200 OK
INFO:     172.30.32.2:49430 - "POST /automations/list HTTP/1.1" 200 OK
INFO:     172.30.32.2:49432 - "POST /automations/list HTTP/1.1" 200 OK
INFO:     192.168.1.50:60564 - "GET / HTTP/1.1" 404 Not Found
INFO:     192.168.1.50:60564 - "GET /favicon.ico HTTP/1.1" 404 Not Found
INFO:     172.30.32.2:49434 - "GET /web/ HTTP/1.1" 304 Not Modified
INFO:     172.30.32.2:49434 - "GET /web/static/js/2.12a24de8.chunk.js HTTP/1.1" 200 OK
INFO:     172.30.32.2:49436 - "GET /web/static/css/main.23eb95f4.chunk.css HTTP/1.1" 304 Not Modified
INFO:     172.30.32.2:49440 - "GET /web/static/js/main.a4706f15.chunk.js HTTP/1.1" 200 OK
INFO:     172.30.32.2:49434 - "POST /automations/list HTTP/1.1" 200 OK
INFO:     172.30.32.2:49442 - "GET /web/ HTTP/1.1" 304 Not Modified
INFO:     172.30.32.2:49442 - "GET /web/static/css/main.23eb95f4.chunk.css HTTP/1.1" 304 Not Modified
INFO:     172.30.32.2:49444 - "GET /web/static/js/2.12a24de8.chunk.js HTTP/1.1" 304 Not Modified
INFO:     172.30.32.2:49446 - "GET /web/static/js/main.a4706f15.chunk.js HTTP/1.1" 304 Not Modified
INFO:     172.30.32.2:49446 - "POST /automations/list HTTP/1.1" 200 OK

Not sure what other info I need to provide, so let me know what else you may need.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
atomicpapacommented, May 20, 2022

@asosnovsky All of my automations do indeed have an id, I just didn’t manage to grab it in the copy. New version is working. Errors are all gone!! Thanks for everything!! Any chance we can do something about that UI now? 😉

1reaction
ikrownicommented, May 18, 2022

So I’ve just updated the addon with some better error handling. It still doesn’t capture everything but should give better info.

Note that I was able to produce a similar error to this by removing the “alias” from the top of the automation, I did manage to fix that. And based on the logs it looks like my fix should cover your issue as well!

This fixed my problem and i now have access to the addon webui. Thanks for the quick fix

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Second Run /lang en-us /FirstRun ThreadId 6224 ...
How to Fix Second Run /lang en-us / FirstRun ThreadId 6224 error for any Autodesk productIf you are installing or uninstalling any Autodesk ......
Read more >
JavaScript - error on first run, second run is fine - Stack Overflow
When I run it once from the console I get: Uncaught TypeError: Cannot read property 'length' of undefined(…).
Read more >
Error on first run · Issue #40 · cloudflare/flan - GitHub
Hi, I ran make build withour any error. Then i tested make start and got this error : docker run --name flan_1574936755 -v ......
Read more >
SAP message F5316 First run is in the past
Message type: E = Error. Message class: F5 - Document Editing. Message number: 316. Message text: First run is in the past ...
Read more >
Error on first run - Veeam R&D Forums
Error is: "The user name or password is incorrect. Failed to process [isFileExists]. Backing up to shared folder on Synology DS916+ NAS. My ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found