hombach / ioBroker.tibberlink

links tibber API data to be used in ioBroker
https://github.com/hombach/ioBroker.tibberlink
GNU General Public License v3.0
25 stars 5 forks source link

Absturz Adapter - nach fehlender Bereitschaft Tibber Server #32

Closed weindler closed 1 year ago

weindler commented 1 year ago

Version 0.1.7 Plattform linux Architektur x64 CPUs 4 Geschwindigkeit 2807 MHz Modell Common KVM processor RAM 7.76 GB Node.js v18.16.1 (Es gibt eine neuere Version: v18.17.1) time 1691747221661 timeOffset -120 Anzahl der Adapter 488 NPM 9.5.1 Aktive Instanzen 39 Weg /opt/iobroker/ Hostname iobroker

Dies findet sich im Log:

`

2023-08-10 13:05:10.037 - error: tibberlink.0 (2848202) 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().

2023-08-10 13:05:10.043 - error: tibberlink.0 (2848202) unhandled promise rejection: Request imeout for uri [object Object] 2023-08-10 13:05:10.043 - error: tibberlink.0 (2848202) Error: Request imeout for uri [object Object] at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) at Object.onceWrapper (node:events:627:28) at ClientRequest.emit (node:events:513:28) at ClientRequest.emit (node:domain:489:12) at TLSSocket.emitRequestTimeout (node:_http_client:848:9) at Object.onceWrapper (node:events:627:28) at TLSSocket.emit (node:events:525:35) at TLSSocket.emit (node:domain:489:12) at TLSSocket.Socket._onTimeout (node:net:570:8) at listOnTimeout (node:internal/timers:569:17) 2023-08-10 13:05:10.044 - error: tibberlink.0 (2848202) Request imeout for uri [object Object] 2023-08-10 13:05:10.054 - info: tibberlink.0 (2848202) terminating 2023-08-10 13:05:10.055 - warn: tibberlink.0 (2848202) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-08-10 13:05:10.615 - error: host.iobroker Caught by controller[0]: 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(). The promise rejected with the reason: 2023-08-10 13:05:10.615 - error: host.iobroker Caught by controller[1]: Error: Request imeout for uri [object Object] 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at Object.onceWrapper (node:events:627:28) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at ClientRequest.emit (node:events:513:28) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at ClientRequest.emit (node:domain:489:12) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at TLSSocket.emitRequestTimeout (node:_http_client:848:9) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at Object.onceWrapper (node:events:627:28) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at TLSSocket.emit (node:events:525:35) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at TLSSocket.emit (node:domain:489:12) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at TLSSocket.Socket._onTimeout (node:net:570:8) 2023-08-10 13:05:10.616 - error: host.iobroker Caught by controller[1]: at listOnTimeout (node:internal/timers:569:17) 2023-08-10 13:05:10.616 - error: host.iobroker instance system.adapter.tibberlink.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-08-10 13:05:10.616 - info: host.iobroker Restart adapter system.adapter.tibberlink.0 because enabled 2023-08-10 13:05:40.667 - info: host.iobroker instance system.adapter.tibberlink.0 started with pid 2996822 2023-08-10 13:05:41.597 - info: tibberlink.0 (2996822) starting. Version 0.1.7 (non-npm: hombach/ioBroker.tibberlink#9da20ec8fdd0a6d7842dafdf66ef363379227b30) in /opt/iobroker/node_modules/iobroker.tibberlink, node: v18.16.1, js-controller: 4.0.24 2023-08-10 13:11:46.038 - error: tibberlink.0 (2996822) 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(). 2023-08-10 13:11:46.039 - error: tibberlink.0 (2996822) unhandled promise rejection: Request imeout for uri [object Object] 2023-08-10 13:11:46.039 - error: tibberlink.0 (2996822) Error: Request imeout for uri [object Object] at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) at Object.onceWrapper (node:events:627:28) at ClientRequest.emit (node:events:513:28) at ClientRequest.emit (node:domain:489:12) at TLSSocket.emitRequestTimeout (node:_http_client:848:9) at Object.onceWrapper (node:events:627:28) at TLSSocket.emit (node:events:525:35) at TLSSocket.emit (node:domain:489:12) at TLSSocket.Socket._onTimeout (node:net:570:8) at listOnTimeout (node:internal/timers:569:17) 2023-08-10 13:11:46.039 - error: tibberlink.0 (2996822) Request imeout for uri [object Object] 2023-08-10 13:11:46.044 - info: tibberlink.0 (2996822) terminating 2023-08-10 13:11:46.045 - warn: tibberlink.0 (2996822) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-08-10 13:11:46.613 - error: host.iobroker Caught by controller[0]: 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(). The promise rejected with the reason: 2023-08-10 13:11:46.613 - error: host.iobroker Caught by controller[1]: Error: Request imeout for uri [object Object] 2023-08-10 13:11:46.613 - error: host.iobroker Caught by controller[1]: at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) 2023-08-10 13:11:46.613 - error: host.iobroker Caught by controller[1]: at Object.onceWrapper (node:events:627:28) 2023-08-10 13:11:46.613 - error: host.iobroker Caught by controller[1]: at ClientRequest.emit (node:events:513:28) 2023-08-10 13:11:46.613 - error: host.iobroker Caught by controller[1]: at ClientRequest.emit (node:domain:489:12) 2023-08-10 13:11:46.614 - error: host.iobroker Caught by controller[1]: at TLSSocket.emitRequestTimeout (node:_http_client:848:9) 2023-08-10 13:11:46.614 - error: host.iobroker Caught by controller[1]: at Object.onceWrapper (node:events:627:28) 2023-08-10 13:11:46.614 - error: host.iobroker Caught by controller[1]: at TLSSocket.emit (node:events:525:35) 2023-08-10 13:11:46.614 - error: host.iobroker Caught by controller[1]: at TLSSocket.emit (node:domain:489:12) 2023-08-10 13:11:46.614 - error: host.iobroker Caught by controller[1]: at TLSSocket.Socket._onTimeout (node:net:570:8) 2023-08-10 13:11:46.614 - error: host.iobroker Caught by controller[1]: at listOnTimeout (node:internal/timers:569:17) 2023-08-10 13:11:46.614 - error: host.iobroker instance system.adapter.tibberlink.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-08-10 13:11:46.614 - info: host.iobroker Restart adapter system.adapter.tibberlink.0 because enabled 2023-08-10 13:12:16.684 - info: host.iobroker instance system.adapter.tibberlink.0 started with pid 2997429 2023-08-10 13:12:17.626 - info: tibberlink.0 (2997429) starting. Version 0.1.7 (non-npm: hombach/ioBroker.tibberlink#9da20ec8fdd0a6d7842dafdf66ef363379227b30) in /opt/iobroker/node_modules/iobroker.tibberlink, node: v18.16.1, js-controller: 4.0.24 2023-08-10 13:12:27.888 - warn: tibberlink.0 (2997429) Error (Gateway Time-out) during: pull of homes:

`

hombach commented 1 year ago

Hallo Weindler, danke für das log - vor allem da es in Sentry nicht aufgeschlagen ist...

weindler commented 1 year ago

Hallo Weindler, danke für das log - vor allem da es in Sentry nicht aufgeschlagen ist...

soll ich dann die neue version drüberziehen, ich sehe aber es immer noch die 0.1.7

hombach commented 1 year ago

Released ist noch die 0.1.6 auf NPM ... die 0.1.7 hier auf GIT hat einen weiteren Catch Block um das Problem einzufangen. Problem geht von Tibber aus - ich bin mir nicht sicher ob ich das auf diese Art fangen kann. Aber zumindest werden die falschen Werte für "Preise Morgen" nun gefangen. -> 0.1.7 kann jetzt von GIT getestet werden, ich werde das aber heute noch auf NPM heben - kann kann das Update auch direkt aus dem Beta-Repo in iOBroker gemacht werden

hombach commented 1 year ago

Version 0.1.7 ist auf NPM, sollte damit spätestens morgen früh in ioBroker auftauchen - wie geschrieben bezüglich dieses Fehlers hier stellt das nur einen Versuch dar - ich kann das zu testen leider nicht provozieren

weindler commented 1 year ago

Version 0.1.7 ist auf NPM, sollte damit spätestens morgen früh in ioBroker auftauchen - wie geschrieben bezüglich dieses Fehlers hier stellt das nur einen Versuch dar - ich kann das zu testen leider nicht provozieren

Ok, habe mal die 0.1.8 installiert, schaun wir mal ob es besser wird, gestern mußte er oft reconnecten, was ich als warnungen im log gesehen habe.

weindler commented 1 year ago

Das war es leider nicht. Habe Version 0.1.8

Ab 13 Uhr erscheint folgendes im Log. Beim Tibber0 Adapter funktioniert es aber.

`

2023-08-14 13:07:41.506 - error: tibberlink.0 (110146) 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().

2023-08-14 13:07:41.510 - error: tibberlink.0 (110146) unhandled promise rejection: Request imeout for uri [object Object] 2023-08-14 13:07:41.510 - error: tibberlink.0 (110146) Error: Request imeout for uri [object Object] at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) at Object.onceWrapper (node:events:627:28) at ClientRequest.emit (node:events:513:28) at ClientRequest.emit (node:domain:489:12) at TLSSocket.emitRequestTimeout (node:_http_client:848:9) at Object.onceWrapper (node:events:627:28) at TLSSocket.emit (node:events:525:35) at TLSSocket.emit (node:domain:489:12) at TLSSocket.Socket._onTimeout (node:net:570:8) at listOnTimeout (node:internal/timers:569:17) 2023-08-14 13:07:41.510 - error: tibberlink.0 (110146) Request imeout for uri [object Object] 2023-08-14 13:07:41.517 - info: tibberlink.0 (110146) terminating 2023-08-14 13:07:41.518 - warn: tibberlink.0 (110146) Terminated (UNCAUGHT_EXCEPTION): Without reason 2023-08-14 13:07:41.522 - error: tibberlink.0 (110146) 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(). 2023-08-14 13:07:41.522 - error: tibberlink.0 (110146) unhandled promise rejection: Request imeout for uri [object Object] 2023-08-14 13:07:41.522 - error: tibberlink.0 (110146) Error: Request imeout for uri [object Object] at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) at Object.onceWrapper (node:events:627:28) at ClientRequest.emit (node:events:513:28) at ClientRequest.emit (node:domain:489:12) at TLSSocket.emitRequestTimeout (node:_http_client:848:9) at Object.onceWrapper (node:events:627:28) at TLSSocket.emit (node:events:525:35) at TLSSocket.emit (node:domain:489:12) at TLSSocket.Socket._onTimeout (node:net:570:8) at listOnTimeout (node:internal/timers:569:17) 2023-08-14 13:07:41.522 - error: tibberlink.0 (110146) Request imeout for uri [object Object] 2023-08-14 13:07:41.580 - error: tibberlink.0 (110146) 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(). 2023-08-14 13:07:41.580 - error: tibberlink.0 (110146) unhandled promise rejection: Request imeout for uri [object Object] 2023-08-14 13:07:41.580 - error: tibberlink.0 (110146) Error: Request imeout for uri [object Object] at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) at Object.onceWrapper (node:events:627:28) at ClientRequest.emit (node:events:513:28) at ClientRequest.emit (node:domain:489:12) at TLSSocket.emitRequestTimeout (node:_http_client:848:9) at Object.onceWrapper (node:events:627:28) at TLSSocket.emit (node:events:525:35) at TLSSocket.emit (node:domain:489:12) at TLSSocket.Socket._onTimeout (node:net:570:8) at listOnTimeout (node:internal/timers:569:17) 2023-08-14 13:07:41.580 - error: tibberlink.0 (110146) Request imeout for uri [object Object] 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[0]: 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(). The promise rejected with the reason: 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: Error: Request imeout for uri [object Object] 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at Object.onceWrapper (node:events:627:28) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at ClientRequest.emit (node:events:513:28) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at ClientRequest.emit (node:domain:489:12) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at TLSSocket.emitRequestTimeout (node:_http_client:848:9) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at Object.onceWrapper (node:events:627:28) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at TLSSocket.emit (node:events:525:35) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at TLSSocket.emit (node:domain:489:12) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at TLSSocket.Socket._onTimeout (node:net:570:8) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[1]: at listOnTimeout (node:internal/timers:569:17) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[2]: 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(). The promise rejected with the reason: 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[2]: Error: Request imeout for uri [object Object] 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[2]: at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[2]: at Object.onceWrapper (node:events:627:28) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[2]: at ClientRequest.emit (node:events:513:28) 2023-08-14 13:07:42.071 - error: host.iobroker Caught by controller[2]: at ClientRequest.emit (node:domain:489:12) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[2]: at TLSSocket.emitRequestTimeout (node:_http_client:848:9) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[2]: at Object.onceWrapper (node:events:627:28) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[2]: at TLSSocket.emit (node:events:525:35) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[2]: at TLSSocket.emit (node:domain:489:12) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[2]: at TLSSocket.Socket._onTimeout (node:net:570:8) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[2]: at listOnTimeout (node:internal/timers:569:17) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: 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(). The promise rejected with the reason: 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: Error: Request imeout for uri [object Object] 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at ClientRequest. (/opt/iobroker/node_modules/tibber-api/src/nodes/TibberQueryBase.ts:130:33) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at Object.onceWrapper (node:events:627:28) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at ClientRequest.emit (node:events:513:28) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at ClientRequest.emit (node:domain:489:12) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at TLSSocket.emitRequestTimeout (node:_http_client:848:9) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at Object.onceWrapper (node:events:627:28) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at TLSSocket.emit (node:events:525:35) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at TLSSocket.emit (node:domain:489:12) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at TLSSocket.Socket._onTimeout (node:net:570:8) 2023-08-14 13:07:42.072 - error: host.iobroker Caught by controller[3]: at listOnTimeout (node:internal/timers:569:17) 2023-08-14 13:07:42.072 - error: host.iobroker instance system.adapter.tibberlink.0 terminated with code 6 (UNCAUGHT_EXCEPTION) 2023-08-14 13:07:42.072 - info: host.iobroker Restart adapter system.adapter.tibberlink.0 because enabled 2023-08-14 13:08:12.131 - info: host.iobroker instance system.adapter.tibberlink.0 started with pid 268241 2023-08-14 13:08:13.049 - info: tibberlink.0 (268241) starting. Version 0.1.8 (non-npm: hombach/ioBroker.tibberlink#77ce1022b8f4fdf1056eb7c6380dbe7afc479d9b) in /opt/iobroker/node_modules/iobroker.tibberlink, node: v18.16.1, js-controller: 4.0.24 2023-08-14 13:08:43.251 - error: tibberlink.0 (268241) Error (undefined) occured during: fetching homes from Tibber API:

`

hombach commented 1 year ago

OK, wertvolle Info - bei mir zeitgleich identischer Fehler, kommt dann wohl klar vom Tibber Server.

hombach commented 1 year ago

Habe in 0.1.9 jetzt zumindest einen Adapter Neustart umgesetzt, um das System nach Fehlern auf Tibber Seite wieder zum Laufen zu bekommen. 0.1.9 stelle ich morgen in das Beta Repository

hombach commented 1 year ago

0.1.9 auf dem Weg ins Beta Repo. Hatte 2 events diese Nacht mit Ausfall Tibber Server. Der Adapter heilt sich nun selbst. Leider konnte ich das Problem nicht an der Wurzel packen, aber als Workaround scheint das zumindest zu funktionieren.

hombach commented 1 year ago

@weindler:

Das war es leider nicht. Habe Version 0.1.8

Ab 13 Uhr erscheint folgendes im Log. Beim Tibber0 Adapter funktioniert es aber.

Akut noch Events dieser Art? Ich hatte jetzt seit der Version 0.1.9 keine Probleme mit hängendem Adapter mehr - bzw. er startete immer neu bei Schwierigkeiten mit dem Tibber Server.

weindler commented 1 year ago

@weindler:

Das war es leider nicht. Habe Version 0.1.8 Ab 13 Uhr erscheint folgendes im Log. Beim Tibber0 Adapter funktioniert es aber.

Akut noch Events dieser Art? Ich hatte jetzt seit der Version 0.1.9 keine Probleme mit hängendem Adapter mehr - bzw. er startete immer neu bei Schwierigkeiten mit dem Tibber Server.

@hombach schaut gut aus, bei mir heilte er sich auch selber, was ich bisher gesehen habe. Hatte aber auch die letzten Tage einigemale das system rebootet, da ich am Server einiges geändert habe daher kann ich es nicht wirklich bestätigen, aber daß was ich einmal gesehen habe, daß warnmeldungen kamen und die dann selbst verschwanden und der adapter online war. Top Job!

hombach commented 1 year ago

Weitere Entschärfung der Probleme mit zeitweise nicht verfügbaren Tibber Server in 0.2.1 und 0.2.2 durch seltenere Abfragen.

weindler commented 1 year ago

Nein das war es leider nicht, nach dem Update auf die 2.2er Version bleibt der adapter auf rot und startet nicht wieder neu, ebenfalls kommen viele errors. `

tibberlink.0 2023-08-25 14:21:59.543 error Error (undefined) occured during: first pull of prices tomorrow :
host.iobroker 2023-08-25 14:21:27.302 error instance system.adapter.tibberlink.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
host.iobroker 2023-08-25 14:21:27.302 error Caught by controller[1]: at TibberAPICaller.updatePricesTomorrow (/opt/iobroker/node_modules/iobroker.tibberlink/src/lib/tibberAPICaller.ts:92:44)
host.iobroker 2023-08-25 14:21:27.302 error Caught by controller[1]: TypeError: Cannot read properties of undefined (reading 'startsAt')
host.iobroker 2023-08-25 14:21:27.301 error Caught by controller[0]: 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(). The promise rejected with the reason:
tibberlink.0 2023-08-25 14:21:26.696 error Cannot read properties of undefined (reading 'startsAt')
tibberlink.0 2023-08-25 14:21:26.695 error TypeError: Cannot read properties of undefined (reading 'startsAt') at TibberAPICaller.updatePricesTomorrow (/opt/iobroker/node_modules/iobroker.tibberlink/src/lib/tibberAPICaller.ts:92:44)
tibberlink.0 2023-08-25 14:21:26.665 error unhandled promise rejection: Cannot read properties of undefined (reading 'startsAt')
tibberlink.0 2023-08-25 14:21:26.664 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().
tibberlink.0 2023-08-25 13:56:26.648 error Error (undefined) occured during: first pull of prices tomorrow :
host.iobroker 2023-08-25 13:55:55.012 error instance system.adapter.tibberlink.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
host.iobroker 2023-08-25 13:55:55.012 error Caught by controller[1]: at TibberAPICaller.updatePricesTomorrow (/opt/iobroker/node_modules/iobroker.tibberlink/src/lib/tibberAPICaller.ts:92:44)
host.iobroker 2023-08-25 13:55:55.012 error Caught by controller[1]: TypeError: Cannot read properties of undefined (reading 'startsAt')
host.iobroker 2023-08-25 13:55:55.012 error Caught by controller[0]: 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(). The promise rejected with the reason:
tibberlink.0 2023-08-25 13:55:54.416 error Cannot read properties of undefined (reading 'startsAt')
tibberlink.0 2023-08-25 13:55:54.416 error TypeError: Cannot read properties of undefined (reading 'startsAt') at TibberAPICaller.updatePricesTomorrow (/opt/iobroker/node_modules/iobroker.tibberlink/src/lib/tibberAPICaller.ts:92:44)
tibberlink.0 2023-08-25 13:55:54.392 error unhandled promise rejection: Cannot read properties of undefined (reading 'startsAt')
tibberlink.0 2023-08-25 13:55:54.390 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().

`

Bin wieder zurück auf die 0.1.9

hombach commented 1 year ago

OK - sorry, da habe ich einen neuen Fehler eingebaut.... war auch noch nicht "fertig" -> DANKE DANKE DANKE für's testen, aber bitte nicht direkt von GIT installieren, es sei denn ich sage etwas dazu... ;) Fehler schau ich mir gleich mal an.

hombach commented 1 year ago

PS: Du kannst auf die 0.2.1 aus dem beta repo gehen, die hat den Fehler nicht

hombach commented 1 year ago

Denke ich habe es eliminiert - die jetzige 0.2.2 ist Release Kandidat. Die den Fehler auslösenden Events konnte ich erfolgreich prüfen. 0.2.2 könnte somit auch aus GIT geladen werden. Ich denke aber dass ich das morgen in das Beta Repository releasen kann.

hombach commented 1 year ago

0.2.2 ist im Beta Repository

weindler commented 1 year ago

0.2.2 ist im Beta Repository

hi@hombach, kein problem ich lasse aktuell den adapter nebenbei laufen daher ist es nciht das problem wenn es mal bei einer version zu problemen kommt, wenn er ausgereift ist und getestet dann werde ich die anderen beiden adapter tibber.0 und tibber connect ersetzen.

hombach commented 1 year ago

Ich werde die nicht ladbaren Arbeitsversionen in Zukunft mit "WORK IN PROGRESS" markieren ;)