DrozmotiX / ioBroker.coronavirus-statistics

Adapter to show Global Corona Virus information and current reports

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

No data today and warn messages "Error: Request failed with status code 502"

DerEmder opened this issue · comments

Hi

Today I got no data and warn messages in my log:

2021-10-15 20:55:14.433 - warn: coronavirus-statistics.0 (17298) [loadAll] Unable to contact COVID-19 API : Error: Request failed with status code 502
--
2021-10-15 20:55:14.626 - warn: coronavirus-statistics.0 (17298) [loadCountries] Unable to contact COVID-19 API : Error: Request failed with status code 502
2021-10-15 20:55:20.201 - info: coronavirus-statistics.0 (17298) Terminated (ADAPTER_REQUESTED_TERMINATION): All data handled, adapter stopped until next scheduled moment
2021-10-15 20:55:20.736 - info: host.Casper instance system.adapter.coronavirus-statistics.0 terminated with code 11 (ADAPTER_REQUESTED_TERMINATION)

My system:

System: ioBroker 5.1.25
Hostname: Casper
Platform: Linux arm64 @ Raspberry Pi 4
Memory: 4 GB
Node.js: 12.22.6
NPM: 7.24.1
Admin Adapter: 5.1.25
JS-Controller: 3.3.18
JS Script Engine: 5.2.13
Z-Wave Adapter: 2.2.0
Zigbee Adapter: 1.6.3
influxDB Adapter: 2.2.0
MQTT Adapter: 2.4.0 (Broker)
Z-Wave Controller: USB ZME-UZB1
Zigbee Controller: CC2652P v3.x

Z-Wave:

7 x Roller Shutter Controller: Fibaro FGRM-222
1 x Multisensor: Aotec MS ZW100
2 x Multisensor: DB5
4 x Multisensor: Fibaro FGMS-001
1 x Siren: Everspring SE812
1 x Water Sensor: Everspring ST812
1 x Water Sensor: Fibaro FGFS-101
3 x Dimmer: Fibaro FGD-212
2 x Main Switches: Greenwave NS310
1 x Window Sensor: Schwaiger ZHS09
1 x Smoke Detector: Vision ZS6101

Zigbee:

1 x Mueller Color LED A60 ZBT-Extended Color
2 x Philips Hue Motion Sensor SML001
6 x Philips Hue White Single Bulb B22 LWB010
1 x Philips Hue White Ambience E14 LTW012
1 x Philips Hue White and Color LCT010
3 x Philips Hue White A60 LWA001

WiFi:

6 x Shelly1 Switches
1 x Logitech Harmony Hub

MQTT:

1 x Weather Station (WiFi)
1 x ESP8266 Radar Motion Sensor (WiFi)
1 x ESP8266 EMS Boiler Controller (WiFi)
1 x ESP32 Flood Sensor & LED Controller (WiFi)
1 x ESP32 Ambilight Controller @ Kodi (WiFi)
2 x 10.1" Touch Display @ Raspberry Pi 3+ (WiFi)
1 x 8" Touch Display @ Odroid C2 (OctoPi)
1 x Kodi Mediacenter @ Raspberry 3+
1 x Vero 4K Mediacenter with OSMC (Kodi)

Looks like the DNS of the API is not working anymore. Will wait 1 day if the issue will be fixed otherwise make a change for different dns entry

Thanks a lot. As of today the warn message is still present and no new data has been fetched.

Same here

Same here since 3 days

Would it be possible to just release a quick fix so we can get data again? That'd be extremly nice.

@DutchmanNL ändere bitte überall die URL https://corona.lmao.ninja/ nach https://disease.sh/ dann sollte alles wieder gehen.

Tests im Browser sind zumindest vielversprechend.

@DutchmanNL ändere bitte überall die URL https://corona.lmao.ninja/ nach https://disease.sh/ dann sollte alles wieder gehen.

Tests im Browser sind zumindest vielversprechend.

I know, ich bin noch am abstimmen welche url bleiben wird sonst bleiben wir DNS ändern

Would it be possible to just release a quick fix so we can get data again? That'd be extremly nice.

Sure but I will be. It earlier at home than this evening so will make the fix (after agreement of proper DNS entry) somewhere this night

Fallback, wenn URL 1 nicht erreichbar, dann verwende URL 2.
Die Sources dahinter sind ja die gleichen.

Would it be possible to just release a quick fix so we can get data again? That'd be extremly nice.

Sure but I will be. It earlier at home than this evening so will make the fix (after agreement of proper DNS entry) somewhere this night

Thanks so much, looking forward to it. In the meantime I'll use the temporary URL. Just wondering why this happened in the first place?

Edit:

Since I'm not a programmer - where do I change the URL?

Edit again:

Never mind - I found it, works fine now, data is coming in. Maybe you should make the URL changeable in the admin interface, so in case we can change it easily.

Never mind - I found it, works fine now, data is coming in. Maybe you should make the URL changeable in the admin interface, so in case we can change it easily.

should'nt be needed

I published a new version on git please test, if successfully I will publish to NPM

Fallback, wenn URL 1 nicht erreichbar, dann verwende URL 2.
Die Sources dahinter sind ja die gleichen.

der DNS ist die fallback, ich baue keine fallback im Adapter wen die source es hat... man hat halt versäumt den altern Eintrag zu updaten... solved

thank you for the update, but still getting some errors

`

coronavirus-statistics.0 2021-10-19 08:25:39.042 error (12999) Cannot write hospital data for Germany.Bundesland.Thüringen: Error: Cannot get hospital data for Thüringen from divi: Error
coronavirus-statistics.0 2021-10-19 08:25:38.953 error (12999) Cannot write hospital data for Germany.Bundesland.Baden-Württemberg: Error: Cannot get hospital data for Baden-Württemberg from divi: Error
coronavirus-statistics.0 2021-10-19 08:25:38.930 warn (12999) [germanyBundesland] Unable to contact api.corona-zahlen.org : Error: Request failed with status code 502
`

solved in 0.8.4