[GH-ISSUE #183] [Gemini 3 Pro Preview, Antigravity] 400 errors on streamGenerateContent when using v2.4.8 #141

Closed
opened 2026-02-27 07:18:11 +03:00 by kerem · 7 comments
Owner

Originally created by @TheLonelyDevil9 on GitHub (Jan 8, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/183

Problem Description

When attempting to generate a standard response using gemini-3-pro-preview via the Antigravity API, the request fails with HTTP 400.

Environment

  • OS: Ubuntu 22.04
  • Software Version: Latest (pulled recently)
  • Interface: API call
  • Endpoint: https://daily-cloudcode-pa.sandbox.googleapis.com

Steps to Reproduce

  1. Configure OAuth credentials via antigravity/oauth_creds.json
  2. Send a standard content generation request to gemini-3-pro-preview
  3. Observe 400 error on streamGenerateContent

Expected vs Actual

  • Expected: Streamed response from model
  • Actual: 400 error, followed by automatic token refresh, then identical 400 error on retry

Error Log

[ERROR] [Antigravity API] Error during stream streamGenerateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 Request failed with status code 400
[INFO] [Antigravity API] Received 401/400 during stream. Refreshing auth and retrying...
[INFO] [Antigravity Auth] Token refreshed and saved successfully.
[ERROR] [Antigravity API] Error during stream streamGenerateContent: 400 Request failed with status code 400

Full stack trace available if needed.

Attempts

  • Token refresh occurs automatically but does not resolve the issue
  • Authentication appears valid (refresh succeeds without error)

Question

Is gemini-3-pro-preview currently supported through the sandbox endpoint, or does it require a different configuration?

Originally created by @TheLonelyDevil9 on GitHub (Jan 8, 2026). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/183 ## Problem Description When attempting to generate a standard response using `gemini-3-pro-preview` via the Antigravity API, the request fails with HTTP 400. ## Environment - **OS:** Ubuntu 22.04 - **Software Version:** Latest (pulled recently) - **Interface:** API call - **Endpoint:** `https://daily-cloudcode-pa.sandbox.googleapis.com` ## Steps to Reproduce 1. Configure OAuth credentials via `antigravity/oauth_creds.json` 2. Send a standard content generation request to `gemini-3-pro-preview` 3. Observe 400 error on `streamGenerateContent` ## Expected vs Actual - **Expected:** Streamed response from model - **Actual:** 400 error, followed by automatic token refresh, then identical 400 error on retry ## Error Log ``` [ERROR] [Antigravity API] Error during stream streamGenerateContent on https://daily-cloudcode-pa.sandbox.googleapis.com: 400 Request failed with status code 400 [INFO] [Antigravity API] Received 401/400 during stream. Refreshing auth and retrying... [INFO] [Antigravity Auth] Token refreshed and saved successfully. [ERROR] [Antigravity API] Error during stream streamGenerateContent: 400 Request failed with status code 400 ``` Full stack trace available if needed. ## Attempts - Token refresh occurs automatically but does not resolve the issue - Authentication appears valid (refresh succeeds without error) ## Question Is `gemini-3-pro-preview` currently supported through the sandbox endpoint, or does it require a different configuration?
kerem closed this issue 2026-02-27 07:18:11 +03:00
Author
Owner

@platberlitz commented on GitHub (Jan 8, 2026):

Same issue on gemini-claude-opus and sonnet.

<!-- gh-comment-id:3722368121 --> @platberlitz commented on GitHub (Jan 8, 2026): Same issue on gemini-claude-opus and sonnet.
Author
Owner

@justlovemaki commented on GitHub (Jan 8, 2026):

Try New Version

<!-- gh-comment-id:3722846112 --> @justlovemaki commented on GitHub (Jan 8, 2026): Try New Version
Author
Owner

@m1a8h7sg90i commented on GitHub (Jan 8, 2026):

Same issue still happening to me on 2.5.3

Image
<!-- gh-comment-id:3726358840 --> @m1a8h7sg90i commented on GitHub (Jan 8, 2026): Same issue still happening to me on 2.5.3 <img width="961" height="67" alt="Image" src="https://github.com/user-attachments/assets/b8d5d70d-87eb-4e7f-ac05-d49baf45a824" />
Author
Owner

@justlovemaki commented on GitHub (Jan 9, 2026):

With increased official control, there is currently no solution.

<!-- gh-comment-id:3727137772 --> @justlovemaki commented on GitHub (Jan 9, 2026): With increased official control, there is currently no solution.
Author
Owner

@DCDYSMRZ commented on GitHub (Jan 9, 2026):

随着官方管控力度加大,目前尚无解决办法。
You are Antigravity, a powerful agentic AI coding assistant designed by the Google Deepmind team working on Advanced Agentic Coding.You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.Absolute paths only****Proactiveness加这个就可以了

<!-- gh-comment-id:3727588386 --> @DCDYSMRZ commented on GitHub (Jan 9, 2026): > 随着官方管控力度加大,目前尚无解决办法。 You are Antigravity, a powerful agentic AI coding assistant designed by the Google Deepmind team working on Advanced Agentic Coding.You are pair programming with a USER to solve their coding task. The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question.**Absolute paths only****Proactiveness**加这个就可以了
Author
Owner

@DCDYSMRZ commented on GitHub (Jan 9, 2026):

但是我在opencode中
The bash tool was called with invalid arguments: [ { "expected": "string", "code": "invalid_type", "path": [ "description" ], "message": "Invalid input: expected string, received undefined" } ]. Please rewrite the input so it satisfies the expected schema.

<!-- gh-comment-id:3727589615 --> @DCDYSMRZ commented on GitHub (Jan 9, 2026): 但是我在opencode中 The bash tool was called with invalid arguments: [ { "expected": "string", "code": "invalid_type", "path": [ "description" ], "message": "Invalid input: expected string, received undefined" } ]. Please rewrite the input so it satisfies the expected schema.
Author
Owner

@justlovemaki commented on GitHub (Jan 10, 2026):

已使用此提示词

<!-- gh-comment-id:3732342117 --> @justlovemaki commented on GitHub (Jan 10, 2026): 已使用此提示词
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/AIClient-2-API-justlovemaki#141
No description provided.