Skip to content

Retry Claude overloaded_error's #163

Closed

Description

@maxstevens-nl

I'm getting quite a lot of overloaded errors (using Claude 4 Sonnet on the Max subscription):

{"type":"overloaded_error","message":"Overloaded"}

In claude code this is handled as a retryable error following this schedule. It would be great if OpenCode also retried these errors.

Activity

  1. maxstevens-nl commented on Jun 17, 2025

    @maxstevens-nl
    ContributorAuthor

    Looking into this a bit more, these lines in the AI SDK determine if a request should be retried. The status of an overloaded call should be 529, so I would expect the call to be retried. Is there a way to check out the network requests, so I can verify that the response code is actually 529? The logs only show this:

    2025-06-17T07:44:29 +10112ms service=session error=[object Object] callback error
    2025-06-17T07:44:29 +1ms message={"type":"overloaded_error","message":"Overloaded"} cause=[object Object] UnknownError
    2025-06-17T07:44:29 +0ms service=bus type=session.error publishing
    
  2. self-assigned this
    on Jun 17, 2025
  3. vieko commented on Jul 3, 2025

    @vieko

    I just started experiencing this when using Claude 4 Sonnet. It wasn't happening yesterday. The difference as far as I can tell: upgraded to a Max subscription from Pro. It does not happen when I switch to Claude 4 Sonnet on Bedrock.

  4. thdxr commented on Jul 3, 2025

    @thdxr
    Member

    anthropic was having issues the past 24 hours

  5. thdxr commented on Jul 3, 2025

    @thdxr
    Member

    closing for now - lets see if it comes back up

  6. JTroyerOvermatch commented on Jul 8, 2025

    @JTroyerOvermatch

    It's back. At the very least, retries will falloff should be implemented.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions