✕ [API Error: [{ "error": { "code": 429, "message": "Resource exhausted. Please try again later. Please refer to https://cloud.google.com/vertex-ai/generative-ai/docs/error-code-429 for more details.", "errors": [ { "message": "Resource exhausted. Please t
What happened?
Voici le bug que j'ai lorsque j'utilise GEMINI CLI sur mon mac sachant que je l'utilise régulièrement, mais que depuis 3 jours je ne l'ai pas utilisé et j'ai à ce jour ce problème qui ne reflete pas la réalité puisque je n'ai pas dépensé de token depuis + de 72h : ✕ [API Error: [{ "error": { "code": 429, "message": "Resource exhausted. Please try again later. Please refer to https://cloud.google.com/vertex-ai/generative-ai/docs/error-code-429 for more details.", "errors": [ { "message": "Resource exhausted. Please try again later. Please refer to https://cloud.google.com/vertex-ai/generative-ai/docs/error-code-429 for more details.", "domain": "global", "reason": "rateLimitExceeded" } ], "status": "RESOURCE_EXHAUSTED" } } ]] Possible quota limitations in place or slow response times detected. Switching to the gemini-2.5-flash model for the rest of this session.
What did you expect to happen?
Après avoir posé une question à Gemini CLI, je m'attendais à ce que le prompt output soit celui de la réponse, et non pas ce bug que je ne comprends pas.
Client information
- CLI Version: 0.19.4
- Git Commit: 6169ef04b
- Session ID: 609598f1-5ebd-44c0-9d07-358f0a905ac7
- Operating System: darwin v22.17.0
- Sandbox Environment: no sandbox
- Model Version: auto
- Memory Usage: 200.5 MB
Login information
Google Account
Anything else we need to know?
No response
Found possible duplicate issues:
- #10890
- #10889
- #12216
- #10880
- #10722
- #10717
- #10542
- #11958
If you believe this is not a duplicate, please remove the status/possible-duplicate label.
I am set to /model "Auto" with the "Preview Features" setting turned off, using an API key connected to a Tier 1 billing account. 2.5-pro should continue to work. It doesn't bump me down to flash either. It just fails.
> @notes/ai-context.md For each language (Slovak, Polish, Lithuanian, Icelandic, Latvian, Estonian, Nepali, Navajo, Cherokee, Cree, Inuktitut, Ojibwe, Yupic, and Dakota), translate the english strings
in @src/i18n/locales/en.ts to that language for a new language module for that language. Use your internal language translation capability.
✕ [API Error: {"error":{"message":"{\n \"error\": {\n \"code\": 429,\n \"message\": \"Resource has been exhausted (e.g. check quota).\",\n \"status\": \"RESOURCE_EXHAUSTED\"\n
}\n}\n","code":429,"status":"Too Many Requests"}}]
Please wait and try again later. To increase your limits, request a quota increase through AI Studio, or switch to another /auth method
> /stats model
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Model Stats For Nerds │
│ │
│ Metric gemini-2.5-pro │
│ ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── │
│ API │
│ Requests 3 │
│ Errors 3 (100.0%) │
│ Avg Latency 355ms │
│ │
│ Tokens │
│ Total 0 │
│ ↳ Prompt 0 │
│ ↳ Output 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
> /stats session
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Session Stats │
│ │
│ Interaction Summary │
│ Session ID: 2c494af4-060d-42ca-a8a5-025031e42261 │
│ Tool Calls: 0 ( ✓ 0 x 0 ) │
│ Success Rate: 0.0% │
│ │
│ Performance │
│ Wall Time: 1m 43s │
│ Agent Active: 1.1s │
│ » API Time: 1.1s (100.0%) │
│ » Tool Time: 0s (0.0%) │
│ │
│ │
│ Model Usage Reqs Input Tokens Output Tokens │
│ ─────────────────────────────────────────────────────────────── │
│ gemini-2.5-pro 3 0 0 │
│ │
│ Usage limits span all sessions and reset daily. │
│ /auth to upgrade or switch to API key. │
│ │
│ │
│ » Tip: For a full token breakdown, run `/stats model`. │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
> /stats tools
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ No tool calls have been made in this session. │
│
│ Debug Console (F12 to close) │
│ │
│ ℹ [STARTUP] Recording metric for phase: initialize_mcp_clients duration: 0.24845700000014403 │
│ ⚠ Attempt 1 failed with status 429. Retrying with backoff... ApiError: {"error":{"message":"{\n \"error\": {\n \"code\": 429,\n \"message\": \"Resource has been exhausted (e.g. check │
│ quota).\",\n \"status\": \"RESOURCE_EXHAUSTED\"\n }\n}\n","code":429,"status":"Too Many Requests"}} │
│ at throwErrorIfNotOK (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/genai/dist/node/index.mjs:11716:30) │
│ at process.processTicksAndRejections (node:internal/process/task_queues:105:5) │
│ at async file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/genai/dist/node/index.mjs:11469:13 │
│ at async Models.generateContentStream (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/genai/dist/node/index.mjs:12859:24) │
│ at async file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/loggingContentGenerator.js:121:26 │
│ at async retryWithBackoff (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/utils/retry.js:75:28) ▄│
│ at async GeminiChat.makeApiCallAndProcessStream █│
│ (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/geminiChat.js:380:32) █│
│ at async GeminiChat.streamWithRetries █│
│ (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/geminiChat.js:234:40) █│
│ at async Turn.run (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/turn.js:60:30) █│
│ at async GeminiClient.sendMessageStream █│
│ (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/client.js:392:26) { █│
│ status: 429 █│
│ } █│
│ ⚠ Attempt 2 failed with status 429. Retrying with backoff... ApiError: {"error":{"message":"{\n \"error\": {\n \"code\": 429,\n \"message\": \"Resource has been exhausted (e.g. check █│
│ quota).\",\n \"status\": \"RESOURCE_EXHAUSTED\"\n }\n}\n","code":429,"status":"Too Many Requests"}} █│
│ at throwErrorIfNotOK (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/genai/dist/node/index.mjs:11716:30) █│
│ at process.processTicksAndRejections (node:internal/process/task_queues:105:5) █│
│ at async file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/genai/dist/node/index.mjs:11469:13 █│
│ at async Models.generateContentStream (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/genai/dist/node/index.mjs:12859:24) █│
│ at async file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/loggingContentGenerator.js:121:26 █│
│ at async retryWithBackoff (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/utils/retry.js:75:28) █│
│ at async GeminiChat.makeApiCallAndProcessStream █│
│ (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/geminiChat.js:380:32) █│
│ at async GeminiChat.streamWithRetries █│
│ (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/geminiChat.js:234:40) █│
│ at async Turn.run (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/turn.js:60:30) █│
│ at async GeminiClient.sendMessageStream █│
│ (file:///home/hedges/.nvm/versions/node/v22.20.0/lib/node_modules/@google/gemini-cli/node_modules/@google/gemini-cli-core/dist/src/core/client.js:392:26) { █│
│ status: 429 █│
│ } █│
│ ✖ Error when talking to Gemini API Full report available at: /tmp/gemini-client-error-Turn.run-sendMessageStream-2025-12-12T02-57-58-424Z.json █│
> /about
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ About Gemini CLI │
│ │
│ CLI Version 0.20.0 │
│ Git Commit d0ce3c4c5 │
│ Model gemini-2.5-pro │
│ Sandbox no sandbox │
│ OS linux │
│ Auth Method gemini-api-key │
│ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
From https://aistudio.google.com/api-keys for this key:
wv-free-emdr-key
wv-free-emdr
gen-lang-client-0723761479
Dec 11, 2025
Tier 1
Rate limit info from aistudio.google.com/usage:
gemini-3-pro
Text-out models
9 / 25
385.29K / 1M
200 / 250

bar_chart
gemini-2.5-pro
Text-out models
11 / 150
925.21K / 2M
352 / 10K

bar_chart
gemini-2.5-flash
Text-out models
1 / 1K
43.12K / 1M
21 / 10K

bar_chart
gemini-2.5-flash-lite
Text-out models
1 / 4K
11.19K / 4M
7 / Unlimited
The /tmp file contains the call stack listed above from the F12 output, plus a bunch of reference content from files in my project.
Getting RESOURCE_EXHAUSTED quite frequently. I've only been working for about an hour today. It's a Tier 1 paid API key. This is almost unusable.
Could this actually be a forwarded message from one of the services the engine is trying to use on the back end? Like, its storage mechanism has run out of disk space or something?
Or, we were being used as training sets because we're pushing its limits, and whatever resources were allocated for trainers have hit some limit?
Also seeing this (or similar) issue.
✕ [API Error: {"error":{"message":"{\n \"error\": {\n \"code\": 429,\n \"message\": \"Resource has been exhausted (e.g. check quota).\",\n \"status\":
\"RESOURCE_EXHAUSTED\"\n }\n}\n","code":429,"status":"Too Many Requests"}}]
Please wait and try again later. To increase your limits, request a quota increase through AI Studio, or switch to another /auth method
│
│ Session Stats │
│ │
│ Interaction Summary │
│ Session ID: 94a350cf-b38f-4844-85fe-0594999da48a │
│ Tool Calls: 136 ( ✓ 123 x 13 ) │
│ Success Rate: 90.4% │
│ User Agreement: 100.0% (135 reviewed) │
│ Code Changes: +137 -176 │
│ │
│ Performance │
│ Wall Time: 57m 3s │
│ Agent Active: 20m 43s │
│ » API Time: 13m 40s (66.0%) │
│ » Tool Time: 7m 2s (34.0%) │
│ │
│ │
│ Model Usage Reqs Input Tokens Output Tokens │
│ ─────────────────────────────────────────────────────────────── │
│ gemini-2.5-flash-lite 4 8,570 346 │
│ gemini-2.5-pro 118 5,629,455 16,420 │
│ gemini-2.5-flash 50 2,451,434 8,080 │
│ │
│ Savings Highlight: 7,089,250 (87.6%) of input tokens were served from the cache, reducing costs. │
│ │
│ » Tip: For a full token breakdown, run `/stats model`.
Gemini API Rate Limit shows I did hit a rate limit in Peak Input Tokens Per Minute (TPM) approx ~30 minutes ago for gemini-2.5-flash, however the 429 messages are still occurring with no other rate limit violations that I can see. Quota and usage look fine in the Cloud console.
API key auth, paid Tier 1
https://github.com/google-gemini/gemini-cli/issues/14889#issuecomment-3657810079
These "429" errors are related to resource constraints, which we have been working to improve significantly since you created this in December. Closing this for now but please reopen if you believe this is an actual CLI defect in the client code base.
@bdmorgan issue still occurs