6 Fault Domains Rapid Fix Hub
Verified root causes, copyable remediation commands, post-fix verification, and anti-patterns for Gemini & Antigravity errors.
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
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
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
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
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
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
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 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