Omaroid / Covid-19-API

A realtime API for coronavirus cases on Heroku. Data automatically updated every 10 minutes!
https://covid19api.herokuapp.com/
MIT License
59 stars 10 forks source link

JSON parse error in "confirmed" endpoint #8

Closed balsama closed 4 years ago

balsama commented 4 years ago

Hi. Thanks for putting this together.

The response from https://covid19api.herokuapp.com/confirmed is returning invalid json currently. Specifically:

Error: Parse error on line 15322:
...": 0,            "3/23/20": NaN,         "3/3/20": 0,
----------------------^
Expecting 'STRING', 'NUMBER', 'NULL', 'TRUE', 'FALSE', '{', '[', got 'undefined'
stopyransky commented 4 years ago

yeah i think issue is related to the source https://github.com/CSSEGISandData/COVID-19/issues/1372 seems that they tried to add granulation to US data but messed the whole dataset. IT seems that now timeseries files are depreciated and will not be updated - they use different files: info here: https://github.com/CSSEGISandData/COVID-19/issues/1355

Omaroid commented 4 years ago

I've corrected the files to support the new changes in the dataset. Check the readme for more details.