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

Gemini doest respond

Open mbullo-maker2 opened this issue 1 year ago • 10 comments

I sent a prompt (hi) to Gemini, and it's been over 14 minutes with no response. My internet connection is active and stable, so I’m unsure what’s causing the delay.

Additional Context The system detected rate limits twice during this time, but I never received any reply — not even an error or timeout message.

Diagnostic Information CLI Version: 0.1.3

Git Commit: 382486e (with local modifications)

Operating System: Linux v24.2.0

Sandbox Environment: No sandbox

Model Version: gemini-2.5-pro

Memory Usage: 235.0 MB

mbullo-maker2 avatar Jun 25 '25 22:06 mbullo-maker2

I think I got the same issue but different output

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session.
  ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key
  ⚡ You can switch authentication methods by typing /auth

⠏ Dividing by zero... just kidding! (esc to cancel, 632s)

dvwzj avatar Jun 25 '25 22:06 dvwzj

I attempted multiple troubleshooting steps — including restarting the app, switching shell environments, rebooting the system, and performing a full reinstall — but the issue persists with no change in behavior.

mbullo-maker2 avatar Jun 25 '25 22:06 mbullo-maker2

Law 40: Despise The Free Lunch. What is offered for free is dangerous — it usually involves either a trick or a hidden obligation. What has worth is worth paying for. By paying your own way you stay clear of gratitude, guilt, and deceit.

Mystic33-Neo avatar Jun 25 '25 23:06 Mystic33-Neo

I am encountering the same issue, but only after a long day of interaction. I've been attempting to discern if I've reached the interaction limit but can't find concrete evidence of that.

cosmicdreams avatar Jun 25 '25 23:06 cosmicdreams

In the first 10 hours after launch, we got a ridiculous amount of interest (far more than we dreamed) which resulted in us exceeding our internal capacity. We're doing a number of things to make it better including:

  1. adding more gemini TPU capacity
  2. intelligently routing requests to different models based on complexity
  3. providing better fallbacks when there's a slow response

Sorry, but thanks for riding it out with us. 🙏

ryanjsalva avatar Jun 26 '25 00:06 ryanjsalva

Thank you for the response!

justinthomp avatar Jun 26 '25 00:06 justinthomp

version 0.1.4 has a fix for this issue could you please update to latest and confirm that you are on 0.1.4. That should help resolve this issue for you.

npm install -g @google/gemini-cli@latest gemini --version

srithreepo avatar Jun 26 '25 02:06 srithreepo

With 0.1.4 I see now that I properly receive a response informing me that I did exceed the limit.

I'm just seeing if you give me a proper error message

ℹ ⚡ Slow response times detected. Automatically switching from gemini-2.5-pro to gemini-2.5-flash for faster responses for the remainder of this session. ⚡ To avoid this you can utilize a Gemini API Key. See: https://goo.gle/gemini-cli-docs-auth#gemini-api-key ⚡ You can switch authentication methods by typing /auth ✕ [API Error: [{ "error": { "code": 429, "message": "Quota exceeded for quota metric 'StreamGenerateContent Requests' and limit 'StreamGenerateContent Requests per day 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 day 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

cosmicdreams avatar Jun 26 '25 03:06 cosmicdreams

My last question is, If I have pro plan for gemini will I be able to provide the Ai Studio key that the response is asking for?

cosmicdreams avatar Jun 26 '25 03:06 cosmicdreams

Yes you should be able to do this please note some users are currently reporting issues when using AI Studio API Keys in #1502 We are working on identifying a fix for this issue.

srithreepo avatar Jun 26 '25 06:06 srithreepo