Skip to content

Commit 8caab3d

Browse files
authored
Update issue templates
1 parent 6eb92df commit 8caab3d

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: "[BUG]"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is. Please include timestamps and HTTP status codes.
12+
If possible include the [httpie](https://httpie.org/) or `curl` request and response.
13+
Please include the verbose flag. `-v`
14+
15+
**To Reproduce**
16+
`httpie/curl` request to reproduce the behavior:
17+
1. Getting Italy data at `v2/locations/IT` gives a 422.
18+
2. Expected to same data as `/v2/locations?country_code=IT`
19+
2. See httpie request & response below
20+
```sh
21+
http GET https://coronavirus-tracker-api.herokuapp.com/v2/locations/IT -v
22+
GET /v2/locations/IT HTTP/1.1
23+
Accept: */*
24+
Accept-Encoding: gzip, deflate
25+
Connection: keep-alive
26+
Host: coronavirus-tracker-api.herokuapp.com
27+
User-Agent: HTTPie/2.0.0
28+
29+
30+
31+
HTTP/1.1 422 Unprocessable Entity
32+
Connection: keep-alive
33+
Content-Length: 99
34+
Content-Type: application/json
35+
Date: Sat, 18 Apr 2020 12:50:29 GMT
36+
Server: uvicorn
37+
Via: 1.1 vegur
38+
39+
{
40+
"detail": [
41+
{
42+
"loc": [
43+
"path",
44+
"id"
45+
],
46+
"msg": "value is not a valid integer",
47+
"type": "type_error.integer"
48+
}
49+
]
50+
}
51+
```
52+
53+
**Expected behavior**
54+
A clear and concise description of what you expected to happen.
55+
56+
**Screenshots**
57+
If applicable, add screenshots to help explain your problem.
58+
59+
**Additional context**
60+
Add any other context about the problem here.
61+
Does the other instance at https://covid-tracker-us.herokuapp.com/ produce the same result?

0 commit comments

Comments
 (0)