homebridge-vieramatic icon indicating copy to clipboard operation
homebridge-vieramatic copied to clipboard

Spinning wheel in UI Config

Open Seexelas opened this issue 3 years ago • 56 comments

Describe your issue

I did a fresh install of my Rasp. Homebridge, I installed the Vieramatic plugin, when installed, I get the web ui config page but with a never ending spinning wheel.

Issue Context

Please add the following items, when applicable:

  • Homebridge 1.4.0
  • Node.js Version | v16.13.2
  • Npm Version | v8.3.1

Regular logs show's nothing.

2022-01-24 16_18_06-Homebridge - Personal - Microsoft​ Edge

Tried on Chrome and Edge.

I just restarted the whole Rasp, nothing's change.

Here is the debug on Chrome :

2022-01-24 16_23_26-Settings

I also tried on my iPhone on Safari, same result.

Thanks for the help,

Best regards ,

Alexis

Seexelas avatar Jan 24 '22 15:01 Seexelas

OK, so I used my backup of my config.json, get the part for my Panasonic Tv in the current config.json. restarted and there the web ui is working good.

Seexelas avatar Jan 24 '22 15:01 Seexelas

@Seexelas

welcome back!

hummm

On one hand glad it is sorted. On the other... shouldn't happen.

what TV model do you have ?

thanks in advance!

AntonioMeireles avatar Jan 24 '22 16:01 AntonioMeireles

Hi Antonio,

Thanks ;) Hope everything's good for you.

I have the Panasonic 65GZ2000

Seexelas avatar Jan 24 '22 16:01 Seexelas

did you got anything relevant in the "Console" tab in Chromes's debug ?

AntonioMeireles avatar Jan 24 '22 16:01 AntonioMeireles

[will try to find a way to reproduce and will get back to you]

AntonioMeireles avatar Jan 24 '22 16:01 AntonioMeireles

Not so far, it stays that way.

Is there a discovery or something the first time ?

Seexelas avatar Jan 24 '22 16:01 Seexelas

there was. it's disabled - breaks docker setups. still looking at how to get it properly done for all. i suspect that i 've got some regression - regarding clean installs / empty setups at 1st install. but need to try to repro when at home with some spare time.

AntonioMeireles avatar Jan 24 '22 16:01 AntonioMeireles

I have a docker image for test, do you want me to test it also there ?

Seexelas avatar Jan 24 '22 16:01 Seexelas

let's fix this specific issue 1st :-) then will bug you with docker ;-)

AntonioMeireles avatar Jan 24 '22 16:01 AntonioMeireles

@Seexelas

confirm please that [email protected] that i've just published fixes this issue.

AntonioMeireles avatar Jan 24 '22 19:01 AntonioMeireles

Hi Antonio,

I did a full uninstall, and a config.json cleanup. Rebooted my rasp, installed your plugin.

Same result, spinning wheel.

Seexelas avatar Jan 25 '22 06:01 Seexelas

@Seexelas

thanks for reporting. That's unexpected. can you attach your 'cleaned' config.json ? also, what timezone are you on ? (i'm only will be able to look at this again in around 11hrs)

AntonioMeireles avatar Jan 25 '22 09:01 AntonioMeireles

You will find enclosed the config.json that is actually working (without your plugin as it is uninstalled).

I'm from Luxembourg, so I have right now 11:29 am.

Thanks for your help.

Seexelas avatar Jan 25 '22 10:01 Seexelas

config (1).txt

Seexelas avatar Jan 25 '22 10:01 Seexelas

OK. will get back to you after yours' 9pm. thanks!

AntonioMeireles avatar Jan 25 '22 10:01 AntonioMeireles

@Seexelas can you give a quick test to [email protected] (went just out), please ?

AntonioMeireles avatar Jan 25 '22 20:01 AntonioMeireles

Hi Antonio,

Still the same :S

I switch to debut mode :S but nothing shows up

Seexelas avatar Jan 25 '22 20:01 Seexelas

@Seexelas

plz install a debug version - npm i -g homebridge-vieramatic@debug, and restart homebridge. then please attach here the contents from the "Console" tab in Chromes's debug - you should get lines starting by (updateGlobalConfig) --> there...

AntonioMeireles avatar Jan 25 '22 20:01 AntonioMeireles

I have this :

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'tvs')
    at J4 (VieraConfigUI.tsx:23:7)
    at async VieraConfigUI.tsx:70:24
J4 @ VieraConfigUI.tsx:23
await in J4 (async)
(anonymous) @ VieraConfigUI.tsx:70
n9 @ VieraConfigUI.tsx:67
i9 @ VieraConfigUI.tsx:69
p8 @ index.js:506
U2 @ index.js:173
l6 @ children.js:124
u8 @ index.js:392
U2 @ index.js:226
l6 @ children.js:124
U2 @ index.js:196
l6 @ children.js:124
U2 @ index.js:196
l6 @ children.js:124
U2 @ index.js:196
M @ render.js:16
R1 @ render.js:55
(anonymous) @ VieraConfigUI.tsx:335
_handleIncomingMessage @ ui.ts:70
postMessage (async)
confirmReady @ main-es2015.9d482d945810494ac85a.js:1
handleMessage @ main-es2015.9d482d945810494ac85a.js:1
invokeTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
onInvokeTask @ main-es2015.9d482d945810494ac85a.js:1
invokeTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
runTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
invokeTask @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
p @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
f @ polyfills-es2015.e8bb8be2ebc926cac2d0.js:1
postMessage (async)
(anonymous) @ index.html?origin=http%3A%2F%2F192.168.1.250&v=4.0.22-debug1:17
load (async)
(anonymous) @ index.html?origin=http%3A%2F%2F192.168.1.250&v=4.0.22-debug1:16

Seexelas avatar Jan 25 '22 20:01 Seexelas

trying to understand why i do not get that error here...

AntonioMeireles avatar Jan 25 '22 20:01 AntonioMeireles

I tried edge, chrome, safari on my phone and it's the same !

When I put the configuration of my tv back in config.json and restart. No more error in Chrome console and it works.

Seexelas avatar Jan 25 '22 20:01 Seexelas

Hummm...

So with the web ui working, I switched to edit mode, delete my tv configuration, restarted and there it is working.

Even with a full restart of the rasp, it still working !

Seexelas avatar Jan 25 '22 20:01 Seexelas

this is bizarre. it works here (on the mac) on both firefox, safari, edge and chrome. and in safari in the iphone.

image

AntonioMeireles avatar Jan 25 '22 20:01 AntonioMeireles

(wondering) did you did an hard refresh on the browser of the UI ? i suspect that perhaps the UI may had gone nuts between homebridge updates (as server (hb) side code changed but UI one not fully... (just thinking loud)

AntonioMeireles avatar Jan 25 '22 20:01 AntonioMeireles

So this is weird... I took my Mac (M1 Chip).

No issue on Safari, and Chrome.

Safari IOS -> Nok Chrome, Edge Windows -> Nok

I don't use Edge on my PC so it's like fresh. It's to become crazy.

Seexelas avatar Jan 25 '22 21:01 Seexelas

@Seexelas

digging. thanks for your patience!

AntonioMeireles avatar Jan 25 '22 21:01 AntonioMeireles

No problem, glad I can help

Seexelas avatar Jan 25 '22 21:01 Seexelas

@Seexelas

install plz npm i -g [email protected].

where is failed before still fails ? and where it works still works ?

AntonioMeireles avatar Jan 25 '22 21:01 AntonioMeireles

Same results as before

Seexelas avatar Jan 25 '22 21:01 Seexelas

bah. thanks. will keep digging.

AntonioMeireles avatar Jan 25 '22 21:01 AntonioMeireles