ukhsa-internal / coronavirus-dashboard-api-v1 Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
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:
If a query without sub structures is used, the API works fine.
This bug is new, since I was able to use these queries yesterday.
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.
Some API v1 results can be split across pages. See this example:
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.