在 Antigravity 中调用 Gemini 模型时,刚启动软件时可以正常响应,但运行一段时间后就会报错:“User location is not supported for the API use”,导致连接中断无法持续使用

kyrie2 2026-08-25 11:00 1


报错:
Trajectory ID: f12ff434-208d-4be8-a44e-663fa225f159
Error: HTTP 400 Bad Request
Sherlog:
TraceID: 0x99219a2198bf1f0c
Headers: {"Alt-Svc":["h3=":443"; ma=2592000,h3-29=":443"; ma=2592000"],"Content-Length":["140"],"Content-Type":["text/event-stream"],"Date":["Tue, 25 Aug 2026 02:54:21 GMT"],"Server":["ESF"],"Server-Timing":["gfet4t7; dur=379"],"Vary":["Origin","X-Origin","Referer"],"X-Cloudaicompanion-Trace-Id":["99219a2198bf1f0c"],"X-Content-Type-Options":["nosniff"],"X-Frame-Options":["SAMEORIGIN"],"X-Xss-Protection":["0"]}


{
"error": {
"code": 400,
"message": "User location is not supported for the API use.",
"status": "FAILED_PRECONDITION"
}
}


节点:台湾家宽


规则:
host-keyword,googleapis,台湾
HOST,ai.google.dev,台湾
HOST,alkalimakersuite-pa.clients6.google.com,台湾
HOST,generativelanguage.googleapis.com,台湾
HOST,makersuite.google.com,台湾
HOST-SUFFIX,bard.google.com,台湾
HOST-SUFFIX,deepmind.com,台湾
HOST-SUFFIX,deepmind.google,台湾
HOST-SUFFIX,gemini.google.com,台湾
HOST-SUFFIX,generativeai.google,台湾
HOST-SUFFIX,proactivebackend-pa.googleapis.com,台湾


gemini 和 google 位置显示也是台湾,使用 claude/gpt 模型没有任何问题


有大佬知道这是咋回事嘛,应该怎么解决呢

最新回复 (0)
    没有回复
* 帖子来源V2EX
返回