fungus75 / ioBroker.zoe2

Renault ZOE ioBroker adapter using the same API as myRenault APP
MIT License
14 stars 6 forks source link

During connection always throws ERRORS #48

Open MichaelSchaaf999 opened 1 year ago

MichaelSchaaf999 commented 1 year ago

Hi, unfortunately the app throws errors while having successful connections to the server:

zoe2.0 2023-01-01 10:45:04.386 error Cannot read property 'status' of undefined
zoe2.0 2023-01-01 10:45:04.386 error TypeError: Cannot read property 'status' of undefined at /opt/iobroker/node_modules/iobroker.zoe2/main.js:363:29 at processTicksAndRejections (internal/process/task_queues.js:95:5)
zoe2.0 2023-01-01 10:45:04.385 error unhandled promise rejection: Cannot read property 'status' of undefined
zoe2.0 2023-01-01 10:45:04.385 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
zoe2.0 2023-01-01 10:45:04.385 error Error in step 5, errorCode: 2
zoe2.0 2023-01-01 10:45:04.384 error Error: timeout of 3000ms exceeded
zoe2.0 2023-01-01 10:45:04.384 error Maybe Kamereon-API Key has changed, please check https://github.com/fungus75/ioBroker.zoe2/wiki
zoe2.0 2023-01-01 10:45:04.383 error No valid response1 from getKamereonAccount service

The necessary values are being transferred correct, though. What can we do to avoid these errors? LG Michael

fungus75 commented 1 year ago

Hi,

please upgrade to the very last version (use expert-mode in iobrokers-adapters, click on "from own URL" and enter that URL: https://github.com/fungus75/ioBroker.zoe2.git

After upgrading, please re-enter all parameters in setup-screen, also please enter the current API-Key from https://github.com/fungus75/ioBroker.zoe2/wiki

Hopefully it helps,

cu Fungus

MichaelSchaaf999 commented 1 year ago

Update done, thanks, now:

image

It was not necessary to re-enter all the parameters: Everything was still present.

But:

zoe2.0 2023-01-02 11:30:06.253 error Cannot read property 'status' of undefined
zoe2.0 2023-01-02 11:30:06.252 error TypeError: Cannot read property 'status' of undefined at /opt/iobroker/node_modules/iobroker.zoe2/main.js:580:29 at processTicksAndRejections (internal/process/task_queues.js:95:5)
zoe2.0 2023-01-02 11:30:06.252 error unhandled promise rejection: Cannot read property 'status' of undefined
zoe2.0 2023-01-02 11:30:06.252 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
zoe2.0 2023-01-02 11:30:06.251 error Error in step 9, errorCode: 2
zoe2.0 2023-01-02 11:30:06.251 error Error: timeout of 3000ms exceeded
zoe2.0 2023-01-02 11:30:06.250 error No valid response1 from getLocation service

CU M.

Wiednitz commented 1 year ago

Der Adapter läuft zur Zeit ohne Probleme. Aller paar Monate habe ich auch oben genannte Fehler und der Adapter stellt seine Arbeit ein, die Uhr neben dem Adapter ist dauerhaft blau, normal sollte die gelb sein. Drüber installieren bringt nix, Adapter komplett deinstallieren und neu installieren !

MichaelSchaaf999 commented 1 year ago

--> "Drüber installieren bringt nix, Adapter komplett deinstallieren und neu installieren !"

This leads to some warnings:

"Befehl ausführen

Process exited with code 0 weniger

mehr $ iobroker url https://github.com/fungus75/ioBroker.zoe2.git --host iobroker --debug install fungus75/ioBroker.zoe2#759f83fcd615d1e3186185cc8f4ef8b0e8c61f0d Installing fungus75/ioBroker.zoe2#759f83fcd615d1e3186185cc8f4ef8b0e8c61f0d... (System call) npm WARN @material-ui/pickers@3.3.10 requires a peer of @material-ui/core@^4.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @material-ui/pickers@3.3.10 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. npm WARN crc@4.1.1 requires a peer of buffer@>=6.0.3 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@4.4.2 requires a peer of react@>=16.6.0 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@4.4.2 requires a peer of react-dom@>=16.6.0 but none is installed. You must install peer dependencies yourself. npm WARN rifm@0.7.0 requires a peer of react@>=16.8 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):

added 3 packages from 5 contributors in 72.949s 221 packages are looking for funding run npm fund for details upload [1] zoe2.admin /opt/iobroker/node_modules/iobroker.zoe2/admin/index_m.html index_m.html text/html upload [0] zoe2.admin /opt/iobroker/node_modules/iobroker.zoe2/admin/zoe.png zoe.png image/png Process exited with code 0"

and...
image

But... No Zoe-instance can be found. Sorry.

fungus75 commented 1 year ago

Update done, thanks, now:

image

It was not necessary to re-enter all the parameters: Everything was still present.

But:

zoe2.0 2023-01-02 11:30:06.253 error Cannot read property 'status' of undefined zoe2.0 2023-01-02 11:30:06.252 error TypeError: Cannot read property 'status' of undefined at /opt/iobroker/node_modules/iobroker.zoe2/main.js:580:29 at processTicksAndRejections (internal/process/task_queues.js:95:5) zoe2.0 2023-01-02 11:30:06.252 error unhandled promise rejection: Cannot read property 'status' of undefined zoe2.0 2023-01-02 11:30:06.252 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). zoe2.0 2023-01-02 11:30:06.251 error Error in step 9, errorCode: 2 zoe2.0 2023-01-02 11:30:06.251 error Error: timeout of 3000ms exceeded zoe2.0 2023-01-02 11:30:06.250 error No valid response1 from getLocation service CU M.

Please try to adjust the timeout in setup-screen: image

fungus75 commented 1 year ago

--> "Drüber installieren bringt nix, Adapter komplett deinstallieren und neu installieren !"

This leads to some warnings:

"Befehl ausführen

Process exited with code 0 weniger

mehr $ iobroker url https://github.com/fungus75/ioBroker.zoe2.git --host iobroker --debug install fungus75/ioBroker.zoe2#759f83fcd615d1e3186185cc8f4ef8b0e8c61f0d Installing fungus75/ioBroker.zoe2#759f83fcd615d1e3186185cc8f4ef8b0e8c61f0d... (System call) npm WARN @material-ui/pickers@3.3.10 requires a peer of @material-ui/core@^4.0.0 but none is installed. You must install peer dependencies yourself. npm WARN @material-ui/pickers@3.3.10 requires a peer of react@^16.8.0 || ^17.0.0 but none is installed. You must install peer dependencies yourself. npm WARN crc@4.1.1 requires a peer of buffer@>=6.0.3 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@4.4.2 requires a peer of react@>=16.6.0 but none is installed. You must install peer dependencies yourself. npm WARN react-transition-group@4.4.2 requires a peer of react-dom@>=16.6.0 but none is installed. You must install peer dependencies yourself. npm WARN rifm@0.7.0 requires a peer of react@>=16.8 but none is installed. You must install peer dependencies yourself. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):

added 3 packages from 5 contributors in 72.949s 221 packages are looking for funding run npm fund for details upload [1] zoe2.admin /opt/iobroker/node_modules/iobroker.zoe2/admin/index_m.html index_m.html text/html upload [0] zoe2.admin /opt/iobroker/node_modules/iobroker.zoe2/admin/zoe.png zoe.png image/png Process exited with code 0"

and... image

But... No Zoe-instance can be found. Sorry.

You can use the plus-sign in admin-screen to create an instance if not created automatically:

image

fungus75 commented 1 year ago

It also works in the Tile-Display-Mode

image

MichaelSchaaf999 commented 1 year ago

yes, but this installs 02.5 NOT 02.6

MichaelSchaaf999 commented 1 year ago

So: Repeated the installation process... image So it says 02.6 has been installed BUT still NO instance can be seen. Interesting: No number (i.e.: "1") is displayed here as number of installed instances. So the installation "your own..." with your link does not work correctly.

and by the way: The parameter timeout you mentioned was NOT shown in previous installations, this is the screenshot from your above entry here: image

What do you recommend?

MichaelSchaaf999 commented 1 year ago

Aktuell: image

Fehler:

host.iobroker 2023-01-09 14:30:08.668 error instance system.adapter.zoe2.0 terminated with code 1 (JS_CONTROLLER_STOPPED)
zoe2.0 2023-01-09 14:30:08.163 error Cannot read property 'status' of undefined
zoe2.0 2023-01-09 14:30:08.163 error TypeError: Cannot read property 'status' of undefined at /opt/iobroker/node_modules/iobroker.zoe2/main.js:532:29 at processTicksAndRejections (internal/process/task_queues.js:95:5)
zoe2.0 2023-01-09 14:30:08.162 error unhandled promise rejection: Cannot read property 'status' of undefined
zoe2.0 2023-01-09 14:30:08.162 error Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
zoe2.0 2023-01-09 14:30:08.162 error Error in step 8, errorCode: 2
zoe2.0 2023-01-09 14:30:08.161 error Error: timeout of 5000ms exceeded
zoe2.0 2023-01-09 14:30:08.161 error No valid response1 from getCockpit service

Was soll da nun noch geschehen?

LG M

fungus75 commented 1 year ago

Kommt der Fehler regelmäßig vor, oder nur vereinzelt? Die API ist leider nicht stabil. z.B. um +/- 20:00 Uhr klappt es nicht,... Auch zwischendurch kommt es immer wieder zu Fehler. Aber 90% der Aufrufe sollten schon klappen.

Die im Screenhot angezeigten Fehler sind - so wie es sich für mich darstellt - nur Folgefehler des Timeouts. Bei mir (allerdings Renault Twingo Electric) klappt es mit 5000 ms Timeout "recht gut", aber wie gesagt, vereinzelt kommt es zu obigen Fehler.

MichaelSchaaf999 commented 1 year ago

Regelmässig. Ich kann ja auch mal den TimeOut höher setzen, falls das was bringt. 50000 ms oder so?

fungus75 commented 1 year ago

Hast du an dem Intervall vom Adapter geschraubt? Wird der Adapter nach wie vor alle 10 Minuten aufgerufen, oder öfter? Was wir mit einem anderen User schon herausgefunden haben: der Adapter läuft am stabilsten, wenn er allerhöchstens alle 3 Minuten aufgerufen wird. Darüber hinaus limitiert die API wohl.

MichaelSchaaf999 commented 1 year ago

Nein, das Intervall ist unverändert:

image
MichaelSchaaf999 commented 1 year ago

Fehler liegt immer noch vor