disease-sh / API

API for Current cases and more stuff about COVID-19 and Influenza
https://disease.sh
GNU General Public License v3.0
2.46k stars 639 forks source link

Endoint returns empty array #30

Closed aarons2222 closed 4 years ago

aarons2222 commented 4 years ago

https://corona.lmao.ninja/countries returns []

benjamin-sommer commented 4 years ago

Same error.

Ramonet72 commented 4 years ago

Yes, I experienced the same. It may be https://www.worldometers.info/coronavirus/ changed the data format?

symrnjit commented 4 years ago

same error

benjamin-sommer commented 4 years ago

The selector "table#main_table_countries" returns nothing. The website format has changed, only showing two tables, "table#main_table_countries_today" and "table#main_table_countries_yesterday".

duarteocarmo commented 4 years ago

Same here :)

symrnjit commented 4 years ago

they've moved the main_table_countries from id to one of the classes of the table.

MhndMousa commented 4 years ago

Will try to make a pull request for that

Solweigdev commented 4 years ago

Same here :)

benjamin-sommer commented 4 years ago

PR done. https://github.com/NovelCOVID/API/pull/31

Solweigdev commented 4 years ago

@benjamin-sommer Why you close this PR ? Not working ?

GowthamF commented 4 years ago

Doesn't it need to be deployed?

richardkeep commented 4 years ago

Same here. My app https://github.com/richardkeep/covid-19 is broken.

benjamin-sommer commented 4 years ago

@benjamin-sommer Why you close this PR ? Not working ?

Sorry, I re-opened it now.

benjamin-sommer commented 4 years ago

Can you please deploy it?

benjamin-sommer commented 4 years ago

Still not fixed. Hmmm...

GaboMendez commented 4 years ago

Same here 😪

andretimm commented 4 years ago

@benjamin-sommer Maybe still need to deploy to https://corona.lmao.ninja

benjamin-sommer commented 4 years ago

@benjamin-sommer Maybe still need to deploy to https://corona.lmao.ninja

I don't think so. The code is shown to be updated in GitHub. Maybe the 10 minute delay caused by the setInterval is causing a wait. In 10 mins it should hopefully update.

benjamin-sommer commented 4 years ago

@Solweigdev can you temporarily change the setInterval to 10 seconds and then back, so we can see if the changes had any affect? Thanks

Solweigdev commented 4 years ago

Ok

benjamin-sommer commented 4 years ago

Thanks

MhndMousa commented 4 years ago

My localhost version seems to be working with @benjamin-sommer fix with no setIntervals. I wonder why is that not working with the endpoint

benjamin-sommer commented 4 years ago

Working now!

benjamin-sommer commented 4 years ago

Now the site is down.

Solweigdev commented 4 years ago

Oh yes ... :'(

l-sugar commented 4 years ago

up again 👍

MhndMousa commented 4 years ago

Host is down :/

sajjadgrw1 commented 4 years ago

Web server is down.

Solweigdev commented 4 years ago

Up

MhndMousa commented 4 years ago

It's back up

benjamin-sommer commented 4 years ago

Up again!

Solweigdev commented 4 years ago

Now ... waiting 10minutes again

benjamin-sommer commented 4 years ago

It works for me in the browser and in my app.

Valaia commented 4 years ago

It's displaying data from a few days ago

benjamin-sommer commented 4 years ago

Screenshot 2020-03-18 at 17 48 01 (UK)

l-sugar commented 4 years ago

data is not accurate though

MatYRicS commented 4 years ago

https://corona.lmao.ninja/countries/[country-name] dosen't work for me.

benjamin-sommer commented 4 years ago

data is not accurate though

For me, it is not accurate in the browser, but strangely in my app it shows data from just a few minutes ago.

Rv607x commented 4 years ago

Data not accurate eg {"country":"Kenya","cases":3,"todayCases":0,"deaths":0,"todayDeaths":0,"recovered":0,"critical":0} Kenya should have like 7 cases today

erichstark commented 4 years ago

I have also problem with call for a specific country and also data seem to be outdated like from 5 days ago (slovakia)

benjhar commented 4 years ago

I've also noticed that they all seem to be outdated. It looks like all countries are (?)

l-sugar commented 4 years ago

Screenshot 2020-03-18 at 18 52 29 my telegram bot queries /countries and is giving outdated data

Kvanrooyen commented 4 years ago

Host is down again for me

benjhar commented 4 years ago

Maybe the dev is hosting saved prior data while they pump out an actual fix. If that's the case then we'll probably have to wait a while.

benjamin-sommer commented 4 years ago

My BitBar plugin is giving updated data for some reason. Screenshot 2020-03-18 at 17 48 01

sajjadgrw1 commented 4 years ago
Screen Shot 2020-03-18 at 10 52 56 PM
Solweigdev commented 4 years ago

image

benjamin-sommer commented 4 years ago

That data looks up to date.

gitmonox commented 4 years ago

Is not u´p to date { "country": "Brazil", "cases": 203, "todayCases": 3, "deaths": 0, "todayDeaths": 0, "recovered": 2, "critical": 2

SOURCE

Brazil 367 +21
benjhar commented 4 years ago

Still not up to date according to https://www.worldometers.info/coronavirus/#countries