API docs should document User-Agent header requirement #2436
Unanswered
visch
asked this question in
Ideas and Issue Triage
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When making API requests to app.fizzy.do using Python's default
urlliblibrary, requests are blocked with a 403 Forbidden response (returning HTML instead of JSON).Steps to Reproduce
OR
Solution
Adding a custom
User-Agentheader fixes the issue:Request
Please add a note to the API documentation mentioning that:
User-AgentheaderThis would save developers time when building custom integrations. The official fizzy-api-client Python library works fine because httpx sets a proper User-Agent by default, but anyone writing a simple script with urllib will hit this issue.
Beta Was this translation helpful? Give feedback.
All reactions