WorldHealthOrganization / app

COVID-19 App

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Case Stats reports low numbers for global total

brunobowden opened this issue · comments

Summary

Low numbers are reported for the global cases and deaths. This is possibly due to intermediate updates of the dashboard.... but in this case, the WHO dashboard is correct, so it's an issue within the server.

Reproduction Steps

Curl Request:

curl -i \
  -H 'Content-Type: application/json' \
  -H 'Who-Client-ID: 00000000-0000-0000-0000-000000000000' \
  -H 'Who-Platform: WEB' \
  -X POST 'https://covid19app.who.int/WhoService/getCaseStats' \
  -d '{ jurisdictions: [ { jurisdictionType: GLOBAL } ] }'

Response shows 51092830 on the final row which is clearly wrong. Possibly an intermediate update when some of the countries were reporting zero as their daily results.

{"jurisdictionStats":
  [{"jurisdictionType":"GLOBAL","jurisdiction":"","lastUpdated":1608768000000,"cases":77228903,
    "deaths":1718470,"recoveries":-1,"attribution":"WHO",
    "timeseries":[
{"epochMsec":1578009600000,"dailyCases":0,"dailyDeaths":0,"totalCases":0,"totalDeaths":0},
{"epochMsec":1578096000000,"dailyCases":1,"dailyDeaths":0,"totalCases":1,"totalDeaths":0},
{"epochMsec":1578182400000,"dailyCases":0,"dailyDeaths":0,"totalCases":1,"totalDeaths":0},
{"epochMsec":1578268800000,"dailyCases":3,"dailyDeaths":0,"totalCases":4,"totalDeaths":0},
...
{"epochMsec":1608595200000,"dailyCases":535825,"dailyDeaths":8963,"totalCases":76288191,"totalDeaths":1700003},
{"epochMsec":1608681600000,"dailyCases":570355,"dailyDeaths":11496,"totalCases":76858546,"totalDeaths":1711499},
{"epochMsec":1608768000000,"dailyCases":370357,"dailyDeaths":6971,"totalCases":51092830,"totalDeaths":1141848}]}],
    "ttl":600}

Checklist:

Got a report of 123M cases and 9M deaths from the staging server. That can't be stale data is definitely an outright error of some kind.

{"jurisdictionStats":[{"jurisdictionType":"GLOBAL","jurisdiction":"","lastUpdated":1608768000000,
"cases":124348252,"deaths":2511629,"recoveries":-1,"attribution":"WHO","timeseries":
...
{"epochMsec":1599782400000,"dailyCases":192793,"dailyDeaths":3507,"totalCases":13981238,"totalDeaths":405401},
{"epochMsec":1599868800000,"dailyCases":196703,"dailyDeaths":3357,"totalCases":14177941,"totalDeaths":408758},

# NOTE: totalDeaths should next be 412419 but jumps to 483105, increase of 70686
{"epochMsec":1599955200000,"dailyCases":202422,"dailyDeaths":3661,"totalCases":15097312,"totalDeaths":483105},

# NOTE: totalDeaths is now bigger than it should be by 526632
{"epochMsec":1600041600000,"dailyCases":372505,"dailyDeaths":6302,"totalCases":30749967,"totalDeaths":945353},
{"epochMsec":1600128000000,"dailyCases":310574,"dailyDeaths":5289,"totalCases":31060541,"totalDeaths":950642},
...
# These errors tend to increase over the time series
{"epochMsec":1608249600000,"dailyCases":2508527,"dailyDeaths":48517,"totalCases":299066842,"totalDeaths":7049462},
{"epochMsec":1608336000000,"dailyCases":2437848,"dailyDeaths":51529,"totalCases":301504690,"totalDeaths":7100991},
{"epochMsec":1608422400000,"dailyCases":2418639,"dailyDeaths":41283,"totalCases":303923329,"totalDeaths":7142274},
{"epochMsec":1608508800000,"dailyCases":1960986,"dailyDeaths":35889,"totalCases":305884315,"totalDeaths":7178163},
{"epochMsec":1608595200000,"dailyCases":2089937,"dailyDeaths":42537,"totalCases":349973477,"totalDeaths":8153262},
{"epochMsec":1608681600000,"dailyCases":2481031,"dailyDeaths":60021,"totalCases":386356643,"totalDeaths":8975719},
{"epochMsec":1608768000000,"dailyCases":2978753,"dailyDeaths":62238,"totalCases":389335396,"totalDeaths":9037957}]}],

Request:

curl -i \
  -H 'Content-Type: application/json' \
  -H 'Who-Client-ID: 00000000-0000-0000-0000-000000000000' \
  -H 'Who-Platform: WEB' \
  -X POST 'https://staging.whocoronavirus.org/WhoService/getCaseStats' \
  -d '{ jurisdictions: [ { jurisdictionType: GLOBAL } ] }'

Note the sudden jumps on the total. That should not happen.

Sudden Stat Jumps - Screenshot

6CDF8283-A075-4E7F-88A7-AFF77495C199