Constant 'RESOURCE_EXHAUSTED' errors
What happened?
I'm getting 'RESOURCE_EXHAUSTED' errors constantly, even under light use. This started happening when I upgraded my account to PRO, which is very strange. The error message:
✕ [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.
Plus, Gemini CLI does not do what it says, i.e. change to the flash model, and keeps erroring.
Even when I run the CLI with 'gemini -m gemini-2.5-flash' I still get the error.
What did you expect to happen?
I expected to be able to use Gemini CLI for some time without having to type 'continue' 60 times a day!
Client information
- CLI Version: 0.8.2
- Git Commit: 9b2d4c61
- Session ID: f33377bd-f780-4fa2-95c6-09cbd587f219
- Operating System: win32 v22.20.0
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-pro
- Memory Usage: 237.7 MB
Login information
No response
Anything else we need to know?
No response
Having the same experience. Started about an hour ago today. 98% context left. "reason": "rateLimitExceeded" which could mean the cli just does things to fast. This should be caught and silently handled under the hood without disrupting to development flow. Like @lgalvao says now th DX is to write 'continue' repeatedly to keep task/dev going on. Error "code": 429 should be easy to catch and do the recommended action 'Please try again later' in a way Google knows best (how much to wait before auto-continuing without the flow disruption we have now.
I am a paid gemini cli user. I have the same issue recently. a trick is that you can simply repeat your query, cli sticks gemini 2.5 pro instead of switching to flash version(bug or feature?)
@JimChengLin you said "a trick is that you can simply repeat your query". that or enter 'continue'. today it continued maybe for a minute or so. you said "sticks" - do you mean it ran on without another 429 for a longer period? for me the agent is not really running as independently as it it needs so broke at least my DX and had to remove gemini cli from my set of agents helping me. need to be able trust the tools i am using. overall gemini cli this has gone down since summer.
Hey @lgalvao @JimChengLin @plindman
(some boiler plate)
There is a trend around folks having this experience, though the cause can vary from user to user. We're using #8142 to track improving this experience. In the meantime if you're able to share the results of /stats model after you see this, that would help us understand what's going on.
(end of boiler plate)
^^ thanks for all the discussion so far, plz continue in #8142 if possible 🙏
and/but: this is the second issue in a row (e.g. #10890) like this ive seen that mentions that the downgrade to flash doesn't work:
Plus, Gemini CLI does not do what it says, i.e. change to the flash model, and keeps erroring. Even when I run the CLI with 'gemini -m gemini-2.5-flash' I still get the error.
@lgalvao can you provide a bit more detail around this? do you see exactly the same error, i.e. it SAYS it's going to downgrade, even when you start with gemini-2.5-flash and then just keeps doing the same error?
@lgalvao can you provide a bit more detail around this? do you see exactly the same error, i.e. it SAYS it's going to downgrade, even when you start with
gemini-2.5-flashand then just keeps doing the same error?
We've had #10881 reported about this exact issue, if you have any more details please provide there 🙏
Same issue on Ultra plan.