You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the API returns HTTP 429, the SDK should parse the Retry-After header (seconds) and either automatically wait and retry (if within max_retries) or raise RateLimitError with the wait time attached. The caller should never need to implement their own 429 backoff.
Proposed Steps
In the response parser, detect HTTP 429 before raising a generic error.
Parse Retry-After header (integer seconds) and attach it to the RateLimitError.
If auto-retry is enabled and max_retries is not exhausted, sleep for retry_after seconds then retry.
In the async client, use asyncio.sleep instead of time.sleep.
Acceptance Criteria
A 429 response raises RateLimitError with a retry_after attribute.
When retrying, the client waits at least Retry-After seconds before the next attempt.
If Retry-After is absent, the client falls back to exponential backoff.
Activity
bukkybyte commentedon Jun 20, 2026
Allow me work on this and dwliver PR within 2 days
grantfox-oss commentedon Jun 21, 2026
🦊 GrantFox — @bukkybyte has been assigned to this issue as part of the Official Campaign campaign!
Next steps:
Closes #11)Good luck! Track your progress on GrantFox.
feat(http): implement rate-limit handling with auto-retry (ShadeProto…
feat(http): implement rate-limit handling with auto-retry (ShadeProto…
feat(http): implement rate-limit handling with auto-retry (ShadeProto…
feat(http): implement rate-limit handling with auto-retry (ShadeProto…
feat(http): implement rate-limit handling with auto-retry (#11)
Merge pull request #24 from bukkybyte/feature/11-rate-limit-handling
grantfox-oss commentedon Jun 24, 2026
🎉 This issue has been marked as completed on GrantFox as part of the Official Campaign campaign!
@bukkybyte's PR #24 was approved and merged by @codebestia.
🏆 @bukkybyte: You earned 35 FoxPoints for this contribution! Your current tier: Explorer (506 total points). Track your full progress on GrantFox.
👏 Great work, @bukkybyte! Keep contributing to ShadeProtocol.