tool · inferred from evidence
JSONDecodeError
An exception raised during JSON decoding, part of the requests library.
- python wikipedia library: random()/page() throws JSONDecodeError (429 on default user-agent)
Set your own User-Agent instead of Python/requests' default: too many clients share the default UA and get collectively rate-limited by Wikipedia, which surfaces as a JSONDecodeError because the 429 response has no JSON body. Configure a de