gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Immediate Alert: Unjustified Rate Limit Breach – Error Code 429

Open SaptaDey opened this issue 1 year ago • 8 comments

What happened?

Initial request after a 36-hour pause triggers "RESOURCE_EXHAUSTED" with "rateLimitExceeded" message. I haven't used Gemini CLI for about 36 hours, and on my first query, I received this response.

Did Gemini just become lazy, like older ChatGPT models, and throw errors to avoid completing tasks?

Image

Image

[API Error: [{ "error": { "code": 429, "message": "Quota exceeded for quota metric 'StreamGenerateContent Requests' and limit 'StreamGenerateContent Requests per minute per user per tier' of service 'cloudcode-pa.googleapis.com' for consumer 'project_number:681255809395'.", "errors": [ { "message": "Quota exceeded for quota metric 'StreamGenerateContent Requests' and limit 'StreamGenerateContent Requests per minute per user per tier' of service 'cloudcode-pa.googleapis.com' for consumer 'project_number:681255809395'.", "domain": "global", "reason": "rateLimitExceeded" } ], "status": "RESOURCE_EXHAUSTED" } } ]] Please wait and try again later. To increase your limits, upgrade to a plan with higher limits, or use /auth to switch to using a paid API key from AI Studio at https://aistudio.google.com/apikey

What did you expect to happen?

To at least read a file and not to throw an error on the first query.

Client information

$ gemini /about
# paste output here

Login information

Google Account

Anything else we need to know?

OS: Windows Edition Windows 11 Pro for Workstations Version 25H2 OS build 26200.5670

SaptaDey avatar Jul 01 '25 16:07 SaptaDey

https://github.com/google-gemini/gemini-cli/issues/2711#issuecomment-3020310205

wyuenho avatar Jul 01 '25 17:07 wyuenho

I believe this issue is most closely related to https://github.com/google-gemini/gemini-cli/issues/1502, but this is also distinct if I'm understanding it correctly.

For the sake of reproducibility, can you confirm an assumption for me @SaptaDey ? From the second screenshot, it looks like the follow-up request after the 36 hour pause was sent in the same session. Is that true, or did you press CTRL + C to end the session before waiting 36 hours and trying again?

Mukamik avatar Jul 03 '25 23:07 Mukamik

Also see https://github.com/google-gemini/gemini-cli/issues/2909. There are many many duplicates of this issue. Clearly it is very important for people. Would love it if the Gemini CLI team could prioritize.

wyuenho avatar Jul 03 '25 23:07 wyuenho

I do get the same error. the interesting point is that the project number (project_number:681255809395) as shown in the initial screenshots is identical here. I thought the project number would be unique. maybe thats a clue.

menty79 avatar Jul 04 '25 06:07 menty79

I believe this issue is most closely related to https://github.com/google-gemini/gemini-cli/issues/1502, but this is also distinct if I'm understanding it correctly.

For the sake of reproducibility, can you confirm an assumption for me @SaptaDey ? From the second screenshot, it looks like the follow-up request after the 36 hour pause was sent in the same session. Is that true, or did you press CTRL + C to end the session before waiting 36 hours and trying again?

Upon receiving the initial API error, I indeed logged out, closed the terminal and cleared the terminal cache / history, reopen the terminal, try to login again and enter my query, hence the second screen shot.

SaptaDey avatar Jul 04 '25 08:07 SaptaDey

I believe this issue is most closely related to https://github.com/google-gemini/gemini-cli/issues/1502, but this is also distinct if I'm understanding it correctly.

For the sake of reproducibility, can you confirm an assumption for me @SaptaDey ? From the second screenshot, it looks like the follow-up request after the 36 hour pause was sent in the same session. Is that true, or did you press CTRL + C to end the session before waiting 36 hours and trying again?

What I can further clarify, in contrast to issue #1502 "too many requests", I never opened multiple parallel terminals and ran Gemini CLI. Hence, I never get the API error response due to too many requests at the same time. There was only one request to edit and solve specific errors in my local repository.

SaptaDey avatar Jul 04 '25 08:07 SaptaDey

Found possible duplicate issues:

  • #4656: (0.9141238927841187)
  • #4431: (0.9063775539398193)
  • #2343: (0.9013148546218872)

gsquared94 avatar Jul 30 '25 06:07 gsquared94

Nearly two months and still an issue... Duplicate or not =/

Open... with no progress...

AHartTN avatar Aug 20 '25 11:08 AHartTN