toniebox-reverse-engineering / teddycloud_web

A better web interface for TeddyCloud
https://github.com/toniebox-reverse-engineering/teddycloud/
17 stars 9 forks source link

View Toniebox not loading #133

Closed rgoggy closed 1 month ago

rgoggy commented 2 months ago

When trying to load the view Tonieboxen I get an error in the Chrome Log "index-hMb_Kd2P.js:610 Error fetching and transforming data: TypeError: (intermediate value) is not iterable at n (index-hMb_Kd2P.js:610:9957)" In the browser it just shows Loading.

The view Tonies is working and shows all Tonies

SciLor commented 2 months ago

Which version are you using? What is your hardware and OS? Did it work before? Did you try to redeploy?

henryk86 commented 2 months ago

Can you post your config.overlay.json? (You can change the Mac to XX but replace all Chars with X

maybe some content is mailformed?

rgoggy commented 2 months ago

Is a Fresh install with docker 0.6 Image on a x86 with seperate alpine Image on proxmox

overlay.xxx.commonName=xxx overlay.xxx.boxName=teddyCloud Box Xxx overlay.xxx.boxModel= overlay.xxx.core.client_cert.file.crt=certs/ client/client.der overlay.xxx.core.client_cert.file.key=certs/ client/private.der overlay.xxx.toniebox.api_access=true

henryk86 commented 2 months ago

Can you enter something behind model? Maybe the empty value is the problem?

rgoggy commented 2 months ago

I Ader cc3200 without ““ but no Change After Reboot

henryk86 commented 2 months ago

try this value: 03-0013

but i just had a look into the code... even with cc3200 the default grey version should be shown (50% transparency or so)

rgoggy commented 2 months ago

It is now like this, but no change and same error in developer console in Chrome overlay.xxx.commonName=xxx overlay.xxx.boxName=teddyCloud Box xxxc overlay. xxx.boxModel=03-0013 overlay.xxx.core.client_cert.file.crt=certs/client/client.der overlay.xxx.core.client_cert.file.key=certs/client/private.der overlay.xxx.toniebox.api_access=true

henryk86 commented 2 months ago

can you check in the browsers dev mode in tab network what are the responses for:

/api/tonieboxesJson

and

/api/tonieboxesCustomJson

and post it here?

rgoggy commented 2 months ago

what responses do you mean? actually it is just downloading it. In Network it says Status 200 with each 161B and 33/46 ms

rgoggy commented 2 months ago

/api/getBoxes brings back: {"boxes":[{"ID":"xxx","commonName":"xxx","boxName":"teddyCloud Box xxx","boxModel":"03-0013"}]}

henryk86 commented 1 month ago

Can you check your tonieboxes.custom.json?

Exists this file? If so, is it empty? If so, please add [] as content and restart teddycloud.

rgoggy commented 1 month ago

Can you check your tonieboxes.custom.json?

Exists this file? If so, is it empty? If so, please add [] as content and restart teddycloud.

It exists with following Content

{ "live": false, "nocloud": false, "source": "", "skip_seconds": 0, "cache": false, "cloud_ruid": "", "cloud_auth": "", "cloud_override": false, "tonie_model": "", "hide": false, "claimed": false, "_version": 5 }

rgoggy commented 1 month ago

I created a new Toniebox.custom.json with just [] and now it loaded