Skip to content

503 Error - Retries only 6 times not 10, EmptyResponseErrorΒ #107

@Dayclone

Description

@Dayclone

Branch

dev

Branch (if other)

No response

Version / Tag / Commit

No response

Provider(s) Affected

No response

Deployment Method

Binary (exe/executable)

Operating System

Windows 11

Python Version (if running from source)

No response

Bug Description

Using the Opus 4.5 model on Antigravity seems to get this error:

[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 1/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 2/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 3/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 4/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 5/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 6/10. Waiting 5s...
[Antigravity] Unexpected exit from streaming retry loop for claude-opus-4-5
API call failed for model antigravity/claude-opus-4-5 with key antigravity_oauth_19.json. Error: EmptyResponseError. See failures.log for details.

Steps to Reproduce

Use or send requests as normal it sometimes just randomly hangs and retries up to 6 times then fails.

Expected Behavior

Should retry 10 times and not 6.

But what I suspect is the logging is not showing the full picture because when I dig into it, it possibly could be that the context window has exceeded. So we need better error handling and the model should condense context but it does not.

Actual Behavior

It only tries 6 times then provides an error

[Antigravity] Unexpected exit from streaming retry loop for claude-opus-4-5 API call failed for model antigravity/claude-opus-4-5 with key antigravity_oauth_19.json. Error: EmptyResponseError. See failures.log for details.

Error Logs / Messages

[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 1/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 2/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 3/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 4/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 5/10. Waiting 5s...
[Antigravity] 503 MODEL_CAPACITY_EXHAUSTED from claude-opus-4-5, attempt 6/10. Waiting 5s...
[Antigravity] Unexpected exit from streaming retry loop for claude-opus-4-5
API call failed for model antigravity/claude-opus-4-5 with key antigravity_oauth_19.json. Error: EmptyResponseError. See failures.log for details.

Pre-submission Checklist

  • I have searched existing issues to ensure this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions