Client or Server side error
Client error
Uncaught (in promise) TypeError: Cannot set property 'innerHTML' of null
at panelViewRunner.min.js:6504
at u (serverAliveCheck.min.js:6554)
at Generator._invoke (serverAliveCheck.min.js:6784)
at Generator.next (serverAliveCheck.min.js:6609)
at g (panelViewRunner.min.js:5864)
at o (panelViewRunner.min.js:5866)
(anonymous) @ panelViewRunner.min.js:6504
u @ serverAliveCheck.min.js:6554
(anonymous) @ serverAliveCheck.min.js:6784
(anonymous) @ serverAliveCheck.min.js:6609
g @ panelViewRunner.min.js:5864
o @ panelViewRunner.min.js:5866
Promise.then (async)
g @ panelViewRunner.min.js:5864
o @ panelViewRunner.min.js:5866
(anonymous) @ panelViewRunner.min.js:5866
(anonymous) @ panelViewRunner.min.js:5866
(anonymous) @ panelViewRunner.min.js:5954
Describe the bug
If you don't connect the 1st printer of the list you can't see data for the second printer in panel tab or in camera tab (camera is ok, but data like time and temp are not ok)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Data should be refresh as they are if the first printer is connected
Screenshots
Screenshots of my second printer (First printer offline)
https://media.discordapp.net/attachments/709293261646200842/831923458534932530/unknown.png
Screenshots of my second printer (First printer online)
https://media.discordapp.net/attachments/709293261646200842/831926710332817438/unknown.png
Code snippet :
https://media.discordapp.net/attachments/709293261646200842/833694529273593876/unknown.png
Versions (please complete the following information):
Additional context
N/A.
Thanks to @3DRemake the place in code was found. It most probably resides here:
viewUpdater.js
line 998 to 1015
tool element is not found
Thanks to @3DRemake the place in code was found. It most probably resides here:
viewUpdater.js
line 998 to 1015tool element is not found
Indeed, when the status is 'Offline' there is no tool element. Note it's not the printer that is not connected to Octopi, but the octopi that is offline.
That's a pointless if statement if I ever saw one 😁
Still couldn't reproduce this but looking now.
Spool selected.
Index 0 printer offline
index 1 printer printing.
XD
PR #447
Once david has time to review that PR I'd like confirmation from you @3DRemake if at all possible.
I'm not sure if the issue lies deeper with something else as if you check the PR I tried a few different variations from my knowledge of the backend/frontend. I've put checks in and removed some of the pointless code and considering the printer is offline this should suffice to resolve the issue for now.
Tested on development branch. Issue is fixed
Tested on development branch. Issue is fixed
Thank you for the report back! Good to know.
Most helpful comment
Tested on development branch. Issue is fixed