ioBroker / ioBroker.dwd

Fetches weather warnings from "Deutscher Wetterdienst" (germany only)
http://www.iobroker.org
MIT License
23 stars 15 forks source link

Empty or invalid JSON: Cannot read JSON file: AxiosError: Request failed with status code 503 #166

Open heckmic opened 1 year ago

heckmic commented 1 year ago

Just installed the Adapter first time.

No Data, silly logging says: Empty or invalid JSON: Cannot read JSON file: AxiosError: Request failed with status code 503

Data for Kreis Coesfeld NRW

Apollon77 commented 1 year ago

503 is normally a temporary server error on the sid eof the data provider. Please check if this error persists. if yes provide a debug log please

heckmic commented 1 year ago

Debug log:

dwd.0 | 2023-06-22 14:06:19.441 | info | Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason -- | -- | -- | -- dwd.0 | 2023-06-22 14:06:19.441 | debug | Plugin sentry destroyed dwd.0 | 2023-06-22 14:06:19.441 | error | Empty or invalid JSON: Cannot read JSON file: AxiosError: Request failed with status code 404 dwd.0 | 2023-06-22 14:06:04.365 | debug | Sorted Channels: ["dwd.0.warning"] dwd.0 | 2023-06-22 14:06:04.364 | debug | Final Channels: ["dwd.0.warning"] dwd.0 | 2023-06-22 14:06:04.364 | debug | Existing Channels: ["dwd.0.warning"] dwd.0 | 2023-06-22 14:06:04.364 | debug | Warnings configured: 1 dwd.0 | 2023-06-22 14:06:04.040 | info | starting. Version 2.8.5 in /opt/iobroker/node_modules/iobroker.dwd, node: v16.19.1, js-controller: 5.0.5 dwd.0 | 2023-06-22 14:06:03.908 | debug | Plugin sentry Initialize Plugin (enabled=true) dwd.0 | 2023-06-22 14:06:03.789 | debug | States connected to redis: 192.168.0.160:6379 dwd.0 | 2023-06-22 14:06:03.787 | debug | States create User PubSub Client dwd.0 | 2023-06-22 14:06:03.787 | debug | States create System PubSub Client dwd.0 | 2023-06-22 14:06:03.785 | debug | Redis States: Use Redis connection: 192.168.0.160:6379 dwd.0 | 2023-06-22 14:06:03.779 | debug | Objects connected to redis: 192.168.0.160:6379 dwd.0 | 2023-06-22 14:06:03.777 | debug | Objects client initialize lua scripts dwd.0 | 2023-06-22 14:06:03.287 | debug | Objects create User PubSub Client dwd.0 | 2023-06-22 14:06:03.287 | debug | Objects create System PubSub Client dwd.0 | 2023-06-22 14:06:03.286 | debug | Objects client ready ... initialize now dwd.0 | 2023-06-22 14:06:03.274 | debug | Redis Objects: Use Redis connection: 192.168.0.160:6379 dwd.0 | 2023-06-22 14:05:24.836 | error | Empty or invalid JSON: Cannot read JSON file: AxiosError: Request failed with status code 404 dwd.0 | 2023-06-22 14:00:35.885 | error | Empty or invalid JSON: Cannot read JSON file: AxiosError: Request failed with status code 404
fraeggle commented 1 year ago

Hi. I also have since about 12 o'clock continuously an error message: Empty or invalid JSON: Cannot read JSON file: Error: Request failed with status code 404

Reinstallation brought no success. DWD Version 2.8.3

2023-06-22 15:14:13.017 - info: host.ioB instance scheduled system.adapter.dwd.0 2,22,42

2023-06-22 15:14:13.066 - info: host.ioB instance system.adapter.dwd.0 started with pid 22589 2023-06-22 15:14:14.416 - debug: dwd.0 (22589) Redis Objects: Use Redis connection: 127.0.0.1:9001 2023-06-22 15:14:14.484 - debug: dwd.0 (22589) Objects client ready ... initialize now 2023-06-22 15:14:14.487 - debug: dwd.0 (22589) Objects create System PubSub Client 2023-06-22 15:14:14.488 - debug: dwd.0 (22589) Objects create User PubSub Client 2023-06-22 15:14:14.557 - debug: dwd.0 (22589) Objects client initialize lua scripts 2023-06-22 15:14:14.565 - debug: dwd.0 (22589) Objects connected to redis: 127.0.0.1:9001 2023-06-22 15:14:14.611 - debug: dwd.0 (22589) Redis States: Use Redis connection: 127.0.0.1:9000 2023-06-22 15:14:14.635 - debug: dwd.0 (22589) States create System PubSub Client 2023-06-22 15:14:14.637 - debug: dwd.0 (22589) States create User PubSub Client 2023-06-22 15:14:14.677 - debug: dwd.0 (22589) States connected to redis: 127.0.0.1:9000 2023-06-22 15:14:14.807 - debug: dwd.0 (22589) Plugin sentry Initialize Plugin (enabled=true) 2023-06-22 15:14:14.808 - info: dwd.0 (22589) Plugin sentry Sentry Plugin disabled for this process because data reporting is disabled on instance 2023-06-22 15:14:15.104 - info: dwd.0 (22589) starting. Version 2.8.3 in /opt/iobroker/node_modules/iobroker.dwd, node: v14.21.3, js-controller: 4.0.24 2023-06-22 15:14:15.230 - debug: dwd.0 (22589) Warnings configured: 5 2023-06-22 15:14:15.231 - debug: dwd.0 (22589) Existing Channels: ["dwd.0.warning","dwd.0.warning1","dwd.0.warning2","dwd.0.warning3","dwd.0.warning4"] 2023-06-22 15:14:15.231 - debug: dwd.0 (22589) Final Channels: ["dwd.0.warning","dwd.0.warning1","dwd.0.warning2","dwd.0.warning3","dwd.0.warning4"] 2023-06-22 15:14:15.244 - debug: dwd.0 (22589) Sorted Channels: ["dwd.0.warning","dwd.0.warning1","dwd.0.warning2","dwd.0.warning3","dwd.0.warning4"] 2023-06-22 15:14:47.535 - error: dwd.0 (22589) Empty or invalid JSON: Cannot read JSON file: Error: Request failed with status code 404 2023-06-22 15:14:47.537 - debug: dwd.0 (22589) Plugin sentry destroyed 2023-06-22 15:14:47.537 - info: dwd.0 (22589) Terminated (ADAPTER_REQUESTED_TERMINATION): Without reason 2023-06-22 15:14:48.256 - info: host.ioB instance system.adapter.dwd.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)

Regards Peter

Dirkn1 commented 1 year ago

Hallo,

habe auch diesen Fehler (404) - aber erst, als ich den Adapter javascript auf 7.0.3 angehoben habe ....

ich werde mal die alte Version zurückspielen und testen

Dirk

fraeggle commented 1 year ago

Hmmm ich habe JS 6.1.4

Dirkn1 commented 1 year ago

so, es funktioniert wieder:

Adapter DWD - Version 2.8.2 Adapter Skriptausführung 6.2.0

Dirk

heckmic commented 1 year ago

Adapter DWD - Version 2.8.2 Adapter Skriptausführung 7.1.0

Geht nicht.

fraeggle commented 1 year ago

hmm hab jetzt mal JS 6.2.0 und DWD 2.8.2 probiert. Bekomme aber immer noch dwd.0 | 2023-06-22 16:36:35.940 | error | Empty or invalid JSON: Cannot read JSON file: Error: Request failed with status code 404

Dirkn1 commented 1 year ago

jetzt geht es auch nicht mehr richtig

Fehler liegt bestimmt bei DWD wenn ich in den Einstellungen von DWD Regenradar aktiviere, bekomme ich die Regenradar-Links. Warnungen leider auch nur noch 404

Dirk

fraeggle commented 1 year ago

@Dirkn1 denk ich auch. weil der Adapter hat ja bis ca 12 uhr fehlerfrei funktioniert. Wünsche allen eine unwetterfreie Zeit........

Grüße aus BW

fraeggle commented 1 year ago

hab noch was gefunden. Über http://www.wettergefahren.de/DWD/warnungen/warnapp/warnings.json kann die Json z.B über chrome geladen werden. Der Link https://www.dwd.de/DWD/warnungen/warnapp/json/warnings.json geht nicht. Ich weiß jetzt nicht, welchen Link der Adapter verwendet.

alaser25 commented 1 year ago

Das wollte ich auch gerade schreiben @fraeggle Ich habe aus einer internen Quelle, dass die DWD Server aktuell überlastet sind. Auf der Seite steht dies auch, es gibt dann eine abgespeckt Variante.

Der Adapter ruft: http://www.dwd.de/DWD/warnungen/warnapp/json/warnings.json folgende Seite ab. Code Zeile 70. Vermutlich funktioniert der Failover auf die weitergefahren.de Seite nicht korrekt.

Diginix commented 1 year ago

Seit heute kurz nach 9 Uhr ist das JSON wieder abrufbar.

alaser25 commented 1 year ago

Ich würde vorschlagen, dieses Problem als Issue aufzunehmen und ggf. zu testen, ob die JSON geladen werden kann und sonst alternativ die von weitergefahren.de zu nehmen?

Diginix commented 1 year ago

@alaser25 Ja, das isst eine gute Idee mit der fallback URL.