marcusraitner / COVID-19-Dashboard

Dieses Scriptable-Skript erzeugt ein Widget, das den Verlauf der 7-Tage-Inzidenz und die Auslastung der Intensivbetten am aktuellen Standort anzeigt. Zusätzlich angezeigt wird der aktuelle Wert der 7-Tage-Inzidenz des zugehörigen Bundeslandes und der Impfstatus des Bundeslandes.
GNU General Public License v3.0
210 stars 16 forks source link

TypeError undefined is not an object #68

Closed ABrolund closed 3 years ago

ABrolund commented 3 years ago

this error disappear if you use vac=n - Parameter It seems https://api.corona-zahlen.org/vaccinations is not valid anymore , It returns:

{"error":{"message":"An error occurred.","details":"Cannot read property 'state' of undefined","stack":"TypeError: Cannot read property 'state' of undefined\n at Object. (/usr/src/app/src/data-requests/vaccination.ts:253:15)\n at Generator.next ()\n at fulfilled (/usr/src/app/dist/data-requests/vaccination.js:5:58)\n at runMicrotasks ()\n at processTicksAndRejections (internal/process/task_queues.js:97:5)"}}

Please have a look

marcusraitner commented 3 years ago

Indeed! Is already discussed in #62 and also addressed at the API https://github.com/marlon360/rki-covid-api/issues/233

Long story short: RKI changed the format of their respective excel 🤦‍♂️