Independent community project. Not affiliated with or endorsed by Google.
ModelCraft modelcraft.dev
← 返回全部急救指南
high ✓ 实测验证日期: 2026-11-26 Gemini API v1beta / AGY v2.35.2
capacity google agygemini-cligemini-api

503 容量不足、504 请求超时与 Agent 卡死

503 504 UNAVAILABLE DEADLINE_EXCEEDED
常见症状特征
  • • Requests fail with `503 UNAVAILABLE` or `The model is overloaded` during peak US/EU hours.
  • • Long prompt with `high`/`xhigh` Thinking budget hangs until `504 DEADLINE_EXCEEDED`.
  • • Antigravity agent stalls on feature-flag or stream handshake (`antigravity-unleash.goog` timeout).
故障根因

上游云端容量波动、Priority 推理触及 0.3x 速率上限,或单轮超大上下文叠加 high/xhigh 深度思考导致服务端超时。

分步修复步骤

  1. 1 先查看 ModelCraft 首页状态灯或 status.cloud.google.com,确认是否为上游全局故障。
  2. 2 若上游正常,先执行 /compact 瘦身上下文、拆分大任务,并将 Thinking 降至 low 或 medium。
  3. 3 高峰期容量拥堵时,可在 AGY 中切换至 Hydrogen 避开前沿模型拥堵队列。
  4. 4 若卡在 antigravity-unleash.goog 特性开关握手,重启会话并检查出站 HTTPS 连通性。

一键复制修复命令

Check Google Cloud Status incidents JSON directly (unix)
curl -sS https://status.cloud.google.com/incidents.json | node -e 'const d=JSON.parse(require("fs").readFileSync(0,"utf8")); console.log("Active:", d.filter(i=>!i.end).length)'
Verify TLS reachability to Gemini API endpoint (unix)
curl -I -sS --max-time 8 https://generativelanguage.googleapis.com/ | head -n 5

修完验证命令

Verify
curl -I -sS --max-time 8 https://generativelanguage.googleapis.com/ | head -n 1