sub2api icon indicating copy to clipboard operation
sub2api copied to clipboard

[Bug] Antigravity streams timeout after 50s (429/503) on Agent requests with tools (Hermes/Claude Code-(sub agents))

Open AlouaneMoad opened this issue 3 months ago • 1 comments

Title: [Bug] Antigravity accounts hang for 50s and return HTTP 429/503 on Agent streaming requests (Hermes / Claude Code-(sub agents))

Description:

Summary When sending streaming chat completion requests with system prompts and tool schemas from AI agent clients (Hermes Agent / Claude Code), sub2api hangs for ~50 seconds and returns HTTP 429: All available accounts exhausted followed by HTTP 503: No available accounts.

The same Antigravity account pool works normally on lightweight chat tools (like OpenCode).

Environment Client: Hermes Agent / Claude Code

Upstream: Google Antigravity (gemini-3.6-flash-high)

Route: POST http://localhost:8080/v1/chat/completions (SSE streaming enabled)

Error Logs Plaintext [hermes] ⚠️ API call failed (attempt 1/3): RateLimitError [HTTP 429] [hermes] Error: HTTP 429: All available accounts exhausted [hermes] Elapsed: 50.47s Context: 2 msgs, ~2,375 tokens

[hermes] ⚠️ API call failed (attempt 2/3): InternalServerError [HTTP 503] [hermes] Error: HTTP 503: No available accounts: no available accounts

Steps to Reproduce Configure an Antigravity account in sub2api.

Connect Hermes Agent or Claude Code to http://localhost:8080/v1.

Send a message with tool calling enabled.

Request stalls for 50s and fails with 429/503, placing the account into a cooldown state.

AlouaneMoad avatar Aug 24 '26 18:08 AlouaneMoad

Same question

zzzyansong-svg avatar Aug 25 '26 06:08 zzzyansong-svg