Giter Club home page Giter Club logo

coronavirus-dashboard-api-v1's People

Contributors

adebayoolabintan avatar beawitcht avatar bmcollier avatar jaro-m avatar xenatisch avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

markspolakovs

coronavirus-dashboard-api-v1's Issues

API Internal Error

It appears API is down today. Any request to the API results with Internal Error or Request cannot be served and error 504 or 500.

Same can be seen in the main dashboard where user is presented with dots instead of data across all available sections e.g.

dash

err

Reorted change in behaviour for "sub structures"

Email about issue with API:

A new issue with the covid dashboard appeared today. When making queries that include structured data with sub elements (that is {case:{new, cum}, deaths:{new, cum}} or similar), the following exception is returned:
{"response":"An internal error occurred whilst processing your request, please try again. If the problem persists, please report as an issue and include your request.","status_code":500,"status":"Internal Server Error"}
The following query was used:

https://api.coronavirus.data.gov.uk/v1/data?filters=areaType=nation;areaName=england&structure={%22date%22:%22date%22,%22name%22:%22areaName%22,%22code%22:%22areaCode%22,%22cases%22:{%22daily1%22:%22newCasesByPublishDate%22,%22cumulative1%22:%22cumCasesByPublishDate%22},%22deaths%22:{%22daily2%22:%22newDeathsByDeathDate%22,%22cumulative2%22:%22cumDeathsByDeathDate%22}}

If a query without sub structures is used, the API works fine.

https://api.coronavirus.data.gov.uk/v1/data?filters=areaType=nation;areaName=england&structure={%22date%22:%22date%22,%22name%22:%22areaName%22,%22code%22:%22areaCode%22,%22daily1%22:%22newCasesByPublishDate%22,%22cumulative1%22:%22cumCasesByPublishDate%22,%22daily2%22:%22newDeathsByDeathDate%22,%22cumulative2%22:%22cumDeathsByDeathDate%22}

This bug is new, since I was able to use these queries yesterday.

API call at LTLA level returning 504 Gateway Timeout

The API call
GET https://api.coronavirus.data.gov.uk/v1/data?filters=areaType=ltla&structure={"areaType": "areaType","areaName": "areaName","areaCode": "areaCode","date": "date","newCasesByPublishDate": "newCasesByPublishDate","cumCasesByPublishDate": "cumCasesByPublishDate","hospitalCases": "hospitalCases","newCasesBySpecimenDate": "newCasesBySpecimenDate","cumCasesBySpecimenDate": "cumCasesBySpecimenDate","newAdmissions": "newAdmissions","covidOccupiedMVBeds": "covidOccupiedMVBeds","newDeaths28DaysByPublishDate": "newDeaths28DaysByPublishDate","cumDeaths28DaysByPublishDate": "cumDeaths28DaysByPublishDate","newDeaths28DaysByDeathDate": "newDeaths28DaysByDeathDate","cumDeaths28DaysByDeathDate": "cumDeaths28DaysByDeathDate"}&page=25
has been returning a 504 Gateway Timeout error for over 12 hours now. It seems to be specific to page 25. Pages 24 & 26 work just fine.

Paginated API queries can be split for a particular date/area across multiple pages

Some API v1 results can be split across pages. See this example:

https://api.coronavirus.data.gov.uk/v1/data?page=4&filters=areaType%3Dltla&structure=%7B%22date%22%3A%22date%22%2C%22areaName%22%3A%22areaName%22%2C%22areaType%22%3A%22areaType%22%2C%22areaCode%22%3A%22areaCode%22%2C%22cases%22%3A%22newCasesBySpecimenDate%22%2C%22deaths%22%3A%22newDeaths28DaysByDeathDate%22%2C%22pcrPercentage%22%3A%22uniqueCasePositivityBySpecimenDateRollingSum%22%7D

https://api.coronavirus.data.gov.uk/v1/data?page=5&filters=areaType%3Dltla&structure=%7B%22date%22%3A%22date%22%2C%22areaName%22%3A%22areaName%22%2C%22areaType%22%3A%22areaType%22%2C%22areaCode%22%3A%22areaCode%22%2C%22cases%22%3A%22newCasesBySpecimenDate%22%2C%22deaths%22%3A%22newDeaths28DaysByDeathDate%22%2C%22pcrPercentage%22%3A%22uniqueCasePositivityBySpecimenDateRollingSum%22%7D

The first link (page 4) has the last entry:
{​​​​​​​​​"date":"2021-06-04","areaName":"Cheshire West and Chester","areaType":"ltla","areaCode":"E06000050","cases":null,"deaths":0,"pcrPercentage":2.1}​​​​​​​​​

But the first entry for the second link (page 5) is:
{​​​​​​​​​"date":"2021-06-04","areaName":"Cheshire West and Chester","areaType":"ltla","areaCode":"E06000050","cases":52,"deaths":null,"pcrPercentage":null}​​​​​​​​​

So the same date and area, but the metrics are split across the pages, with nulls where they are not included.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.