mirror of
https://github.com/justlovemaki/AIClient-2-API.git
synced 2026-04-26 09:55:54 +03:00
[GH-ISSUE #289] 远程服务器 + Docker 下 Antigravity 授权失败(已解决) #203
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/AIClient-2-API-justlovemaki#203
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Cocean001 on GitHub (Jan 28, 2026).
Original GitHub issue: https://github.com/justlovemaki/AIClient-2-API/issues/289
我遇到的情况
我把 AIClient2API 部署在远程服务器的 Docker 里,用 WebUI 做
gemini-antigravity(Antigravity)授权。现象
授权页面能打开,但最后提示“无法通过验证/获取令牌失败”。
原因
配置里开启了代理
http://127.0.0.1:1089,但容器里并没有这个代理在跑(Docker 里127.0.0.1指的是容器自己),所以回调拿到code之后去换 token 的请求连不上代理,导致失败。
我是怎么解决的
把代理关掉并重启容器:
stack/aiclient2api/configs/config.json:PROXY_URL置空PROXY_ENABLED_PROVIDERS置空docker compose restart aiclient2api之后 Antigravity 授权正常。
@justlovemaki commented on GitHub (Jan 28, 2026):
网页端就能直接改的,搞这么复杂?
而且http://127.0.0.1:1089/ 只出现在config.json.example里,这只是作为一个示例
@Cocean001 commented on GitHub (Jan 29, 2026):
感谢回复。是网页端改了没用,所以只能改源码。
@justlovemaki commented on GitHub (Jan 30, 2026):
网页端改哪里没用,我去试试?
具体操作能发一下么?