-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.json
More file actions
60 lines (60 loc) · 1.55 KB
/
Copy patherrors.json
File metadata and controls
60 lines (60 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"captured": "2026-07-20",
"endpoint": "GET https://api.chocodata.com/api/v1/reddit/post",
"note": "Verbatim response bodies from real calls. Nothing here was billed.",
"cases": [
{
"case": "bad api_key",
"request": {
"api_key": "totally_invalid_key_123",
"url": "<a real post url>"
},
"status": 401,
"body": {
"error": {
"code": "INVALID_API_KEY",
"message": "Api key not recognised."
}
}
},
{
"case": "neither post_id nor url",
"request": {},
"status": 400,
"body": {
"error": "invalid_params",
"issues": [
{
"code": "custom",
"message": "reddit.post requires either post_id or url",
"path": []
}
]
}
},
{
"case": "post_id with no subreddit",
"request": {
"post_id": "hbrimd"
},
"status": 404,
"body": {
"error": "item_not_found",
"message": "reddit.post: a subreddit is required (pass a full post URL or add subreddit alongside post_id). The svc-comments surface is keyed by /r/{sub}/.",
"retryable": false
}
},
{
"case": "a non-reddit url (host control)",
"request": {
"url": "https://example.com/"
},
"status": 404,
"body": {
"error": "item_not_found",
"message": "reddit.post: could not resolve a post id from the input. Pass a full reddit post URL, or post_id (+ subreddit).",
"retryable": false
}
}
]
}