Skip to content

[DOCS] Go SDK retry section: 429 quota wall and RateLimitError #971

Closed

Description

@inference-gateway-maintainer

What needs documenting

The Go SDK's executeWithRetry does not wait through every Retry-After on a 429. When the requested wait is longer than RetryConfig.MaxBackoffSec (and MaxBackoffSec is greater than 0) the client treats it as a quota wall: it stops without retrying and returns a typed *sdk.RateLimitError carrying StatusCode, Message (the gateway's {"error": ...} message or the raw body) and RetryAfter.

Affected pages

  • sdks.md, "Retry and backoff" (Go SDK): the sentence "On a 429 the client honors the response's Retry-After header (seconds or an HTTP-date) instead of its computed backoff" is only true while that wait is at most MaxBackoffSec.
  • The same section has no mention of sdk.RateLimitError, so callers do not learn they can read RetryAfter via errors.As and schedule their own retry.

Reference

The SDK README was corrected in inference-gateway/sdk#222 - the wording there can be reused.

Activity

  1. added
    documentation
    on Oct 4, 2026
  2. edenreich commented on Oct 4, 2026

    @edenreich
    Contributor

    @claude can you work on this? use /ponytail:ponytail

  3. added theissue type on Oct 4, 2026
  4. inference-gateway-maintainer commented on Oct 4, 2026

    @inference-gateway-maintainer
    ContributorAuthor

    Claude finished @edenreich's task in 1m 32s —— View job • docs/issue-971-20261004-1230 • Create PR ➔


    Done

    Changes in sdks.md

    • Qualified the Retry-After sentence: the header is honored only while the requested wait is at most MaxBackoffSec.
    • Added a "Rate limits and the quota wall" subsection documenting the stop-without-retrying behavior and the typed *sdk.RateLimitError (StatusCode, Message, RetryAfter), with an errors.As example so callers can schedule their own retry.

    Skipped: no changes elsewhere - the TypeScript/Rust SDK sections do not describe this behavior, and RetryConfig table entries were already accurate.

    | Branch

  5. moved this from Todo to In progress in 2026on Oct 4, 2026
  6. moved this from QA to Done in 2026on Oct 4, 2026
  7. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions