-
-
Notifications
You must be signed in to change notification settings - Fork 314
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
A clear and concise description of what the bug is. Please include timestamps and HTTP status codes.
If possible include the httpie or curl request and response.
Please include the verbose flag. -v
To Reproduce
httpie/curl request to reproduce the behavior:
- Getting Italy data at
v2/locations/ITgives a 422. - Expected to same data as
/v2/locations?country_code=IT - See httpie request & response below
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots or Requests
If applicable, add screenshots or httpie/curlrequests to help explain your problem.
$ http GET https://coronavirus-tracker-api.herokuapp.com/v2/locations/IT -v
GET /v2/locations/IT HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: coronavirus-tracker-api.herokuapp.com
User-Agent: HTTPie/2.0.0
HTTP/1.1 422 Unprocessable Entity
Connection: keep-alive
Content-Length: 99
Content-Type: application/json
Date: Sat, 18 Apr 2020 12:50:29 GMT
Server: uvicorn
Via: 1.1 vegur
{
"detail": [
{
"loc": [
"path",
"id"
],
"msg": "value is not a valid integer",
"type": "type_error.integer"
}
]
}Additional context
Add any other context about the problem here.
Does the other instance at https://covid-tracker-us.herokuapp.com/ produce the same result?
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working