Improve ratelimit exception handling
- Dominant language
- Python
- Stars
- 13
- Forks
- 17
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 1
Description
> [!NOTE]
> Migrated from [augurlabs/augur#3037](https://github.com/augurlabs/augur/issues/3037)
> Originally opened by `@ABrain7710` on 2025-03-05
---
* Raise SecordaryRateLimitException and handle it separately from regular rate limit exception
* Sleep 5 seconds longer than the retry after
* Log when retry after header or rate limit header are not set
Contributor guide
Research direction
Start by locating the rate-limit exception definitions and the retry handling that reads the Retry-After and rate-limit headers. Check the existing tests around retries, then verify that secondary limits are handled separately, retries sleep five seconds beyond the header value, and missing headers are logged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100