[GH-ISSUE #139] gemini-cli-oauth 跟 gemini-antigravity 获取的授权文件都不可用 #112

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

Originally created by @jorthmb on GitHub (Dec 25, 2025).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/139

gemini-cli-oauth 跟 gemini-antigravity 获取的授权文件都不可用,用其他项目生成gemini-cli-oauth的授权文件上传是正常的

用本项目生成的都是返回500错误
[API] Error calling generateContent: 500 Internal error encountered.
[API] Received 500 server error. Retrying in 1000ms... (attempt 1/3)
[API] Error calling generateContent: 500 Internal error encountered.
[API] Received 500 server error. Retrying in 2000ms... (attempt 2/3)
[API] Error calling generateContent: 500 Internal error encountered.
[API] Received 500 server error. Retrying in 4000ms... (attempt 3/3)

Originally created by @jorthmb on GitHub (Dec 25, 2025). Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/139 gemini-cli-oauth 跟 gemini-antigravity 获取的授权文件都不可用,用其他项目生成gemini-cli-oauth的授权文件上传是正常的 用本项目生成的都是返回500错误 [API] Error calling generateContent: 500 Internal error encountered. [API] Received 500 server error. Retrying in 1000ms... (attempt 1/3) [API] Error calling generateContent: 500 Internal error encountered. [API] Received 500 server error. Retrying in 2000ms... (attempt 2/3) [API] Error calling generateContent: 500 Internal error encountered. [API] Received 500 server error. Retrying in 4000ms... (attempt 3/3)
kerem closed this issue 2026-02-27 07:18:04 +03:00
Author
Owner

@MichaelPaul0416 commented on GitHub (Dec 25, 2025):

+1, 看了console的报错是[Server] Error during model list processing: Error: Could not discover a valid Google Cloud Project ID.

<!-- gh-comment-id:3691535608 --> @MichaelPaul0416 commented on GitHub (Dec 25, 2025): +1, 看了console的报错是[Server] Error during model list processing: Error: Could not discover a valid Google Cloud Project ID.
Author
Owner

@justlovemaki commented on GitHub (Dec 25, 2025):

Internal error encountered
要开代理的

<!-- gh-comment-id:3691577870 --> @justlovemaki commented on GitHub (Dec 25, 2025): Internal error encountered 要开代理的
Author
Owner

@justlovemaki commented on GitHub (Dec 25, 2025):

gemini-cli 有的需要 Google Cloud Project ID.

<!-- gh-comment-id:3691578308 --> @justlovemaki commented on GitHub (Dec 25, 2025): gemini-cli 有的需要 Google Cloud Project ID.
Author
Owner

@jorthmb commented on GitHub (Dec 25, 2025):

用了魔法的,Google Cloud Project ID没地方填写呢

<!-- gh-comment-id:3691585159 --> @jorthmb commented on GitHub (Dec 25, 2025): 用了魔法的,Google Cloud Project ID没地方填写呢
Author
Owner

@justlovemaki commented on GitHub (Dec 25, 2025):

#128

<!-- gh-comment-id:3691589410 --> @justlovemaki commented on GitHub (Dec 25, 2025): #128
Author
Owner

@jorthmb commented on GitHub (Dec 25, 2025):

看了一下,是获取到授权token以后,没有获取到project_id,然后提交数据project_id为NULL,造成的500错误

<!-- gh-comment-id:3691625113 --> @jorthmb commented on GitHub (Dec 25, 2025): 看了一下,是获取到授权token以后,没有获取到project_id,然后提交数据project_id为NULL,造成的500错误
Author
Owner

@jorthmb commented on GitHub (Dec 25, 2025):

还有就是gemini-antigravity中设置了Daily Base URL,还是优先使用默认链接,应该是这里的问题
[gemini-core.js] 243
this.baseURL = DEFAULT_ANTIGRAVITY_BASE_URL_DAILY; // 使用通用 GEMINI_BASE_URL 配置
不知道其他的提供商是不是有同样的问题。

<!-- gh-comment-id:3691695357 --> @jorthmb commented on GitHub (Dec 25, 2025): 还有就是gemini-antigravity中设置了Daily Base URL,还是优先使用默认链接,应该是这里的问题 [gemini-core.js] 243 this.baseURL = DEFAULT_ANTIGRAVITY_BASE_URL_DAILY; // 使用通用 GEMINI_BASE_URL 配置 不知道其他的提供商是不是有同样的问题。
Author
Owner

@chenychen commented on GitHub (Feb 6, 2026):

怎么解决的啊?

<!-- gh-comment-id:3858093598 --> @chenychen commented on GitHub (Feb 6, 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#112
No description provided.