Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reorted change in behaviour for "sub structures" #28

Open
jamesbwestwood opened this issue Apr 20, 2021 · 0 comments
Open

Reorted change in behaviour for "sub structures" #28

jamesbwestwood opened this issue Apr 20, 2021 · 0 comments
Assignees

Comments

@jamesbwestwood
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants