Independent community project. Not affiliated with or endorsed by Google.
ModelCraft modelcraft.dev

6 Fault Domains Rapid Fix Hub

Verified root causes, copyable remediation commands, post-fix verification, and anti-patterns for Gemini & Antigravity errors.

quota agy gemini-cli gemini-api
critical

429 RESOURCE_EXHAUSTED with limit: 0 or Phantom Exhaustion

Entitlement or billing project desync: rate limits apply per GCP project (not per API key), so an unbilled project (`limit: 0`), Tier 1 10-min $10 spend cap, or an accidental `GEMINI_API_KEY` env override causes immediate 429s.

RESOURCE_EXHAUSTED

429 RESOURCE_EXHAUSTED limit: 0
Verified: 2026-11-26 · aistudio.google.com Open Fix →
quota agy gemini-cli gemini-web
high

Shared 5h Rolling Window or 7-Day Weekly Cap Reached

True shared-bucket exhaustion across the 5-hour rolling window or 7-day weekly ceiling. Note that implicit full-request KV caching requires >= 4,096 base tokens AND >= 2,050 new tokens added per multi-turn loop.

weekly limit

429 WEEKLY_LIMIT_EXCEEDED RATE_LIMIT_EXCEEDED
Verified: 2026-11-26 · antigravity.google Open Fix →
auth agy gemini-cli gemini-api
critical

401 / 403 Permission Denied & OAuth / Project Mismatch

Stale OAuth grant, mismatched `GOOGLE_CLOUD_PROJECT`, or mixing an AI Studio API key with Vertex/ADC OAuth credentials.

403 Permission Denied

401 403 UNAUTHENTICATED PERMISSION_DENIED ACCESS_TOKEN_TYPE_UNSUPPORTED
Verified: 2026-11-26 · aistudio.google.com Open Fix →
capacity agy gemini-cli gemini-api
high

503 No Capacity, 504 DEADLINE_EXCEEDED & Agent Stall

Upstream Google Cloud / Vertex AI capacity wave, Priority inference hitting its 0.3x rate limit, or an oversized single-turn prompt with `high`/`xhigh` thinking exceeding the server deadline.

503

503 504 UNAVAILABLE DEADLINE_EXCEEDED
Verified: 2026-11-26 · status.cloud.google.com Open Fix →
mcp agy gemini-cli
high

MCP Server Shows Disconnected, EADDRINUSE, or Missing Env Vars

Workspace directory is untrusted, JSON syntax or transport key (`url` vs `httpUrl`) is mismatched, port is already occupied (`EADDRINUSE`), or the CLI security sanitizer stripped `*KEY*`/`*TOKEN*`/`*SECRET*` env vars not explicitly declared in the server `env` block.

Disconnected

MCP_DISCONNECTED EADDRINUSE ENOENT
Verified: 2026-11-26 · antigravity.google Open Fix →
network agy gemini-cli gemini-api
medium

UNABLE_TO_GET_ISSUER_CERT_LOCALLY & Corporate Proxy Reset

Node.js ships its own bundled CA store and ignores the OS corporate root CA unless `NODE_EXTRA_CA_CERTS` points to a readable PEM bundle, or `HTTPS_PROXY` is misconfigured.

UNABLE_TO_GET_ISSUER_CERT_LOCALLY

UNABLE_TO_GET_ISSUER_CERT_LOCALLY ECONNRESET SELF_SIGNED_CERT_IN_CHAIN
Verified: 2026-11-26 · nodejs.org Open Fix →
protocol gemini-api agy
medium

400 INVALID_ARGUMENT: Structured Output Schema Too Complex / Deeply Nested

Constrained decoding compiles the JSON Schema into a finite-state machine; deeply nested objects, recursive `$ref`, or wide `anyOf` unions exceed the state budget.

The specified schema produces a constraint that has too many states

400 INVALID_ARGUMENT
Verified: 2026-11-26 · aistudio.google.com Open Fix →
protocol gemini-api agy gemini-cli
medium

400 Function Call / Function Response Turn Alignment Error

Gemini requires strict 1:1 pairing between model `functionCall` parts and the immediately following `functionResponse` parts (preserving `thought_signature` on thinking models). Naive history trimming breaks this invariant.

Please ensure that function response turn comes immediately after a function call turn

400 INVALID_ARGUMENT MALFORMED_FUNCTION_CALL
Verified: 2026-11-26 · aistudio.google.com Open Fix →