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

[API Error: Model stream ended with empty response text.]

Open jazir555 opened this issue 1 year ago • 22 comments

What happened?

[API Error: Model stream ended with empty response text.]

This is popping up constantly, Gemini applies one replace and hits this immediately, continuing results in the same, one fix then hits this error again, ad infinitum.

What did you expect to happen?

No error, agentic flow continues unhindered.

Client information

│ About Gemini CLI │ │ │ │ CLI Version 0.7.0 │ │ Git Commit f28ffaa3 │ │ Model gemini-2.5-pro │ │ Sandbox no sandbox │ │ OS win32 │ │ Auth Method OAuth │ │

Login information

No response

Anything else we need to know?

No response

jazir555 avatar Oct 04 '25 05:10 jazir555

Gemini CLI is completely unusable given that this completely breaks the agentic flow, one fix and then it hits the error. Asking it to continue or repasting the original prompt leads to the same, 1 fix and then immediate API error.

jazir555 avatar Oct 04 '25 05:10 jazir555

Am also experiencing the same issue. It tries to come up with the implementation plan .etc and when its time to implement, it just outputs that error

olawale-york avatar Oct 04 '25 13:10 olawale-york

This is really a big problem, that message appear to many time breaking the workflow, leading to a file destruction and other resultant problems because AI tends to lose context or think that did something that wasn't done you end up losing all your 2.5 pro usage of the day with nothing because have to roll back the changes. Actually GEMINI CLI is a bad chore.

AluVasquez avatar Oct 07 '25 03:10 AluVasquez

Using 0.8.1, after 0.6, where this was not happening. Is this a known issue?

matevzg avatar Oct 08 '25 16:10 matevzg

Confirmed here as well, can't work with gemini cli because of it and we just got 10x enterprise licenses...

M1steRny avatar Oct 08 '25 23:10 M1steRny

✕ [API Error: Model stream ended with empty response text.] Same here. Ubuntu 25.04.

ashio-git avatar Oct 08 '25 23:10 ashio-git

@SandyTao520 Can you please give these API errors attention? How many times does this need to be reported for this to be prioritized?

jazir555 avatar Oct 08 '25 23:10 jazir555

Yep experiencing the same issue. Please fix, Completely unusable.

arrowtrades avatar Oct 09 '25 09:10 arrowtrades

experiencing the same issue again and again

simfor99 avatar Oct 09 '25 14:10 simfor99

hmm https://github.com/google-gemini/gemini-cli/issues/7851 looks like it might not be specifically about the same error, I'm going to move this to a duplicate of issues that are focused on that error 🤔

bobcatfish avatar Oct 09 '25 15:10 bobcatfish

@bobcatfish Can you guys please acknowledge the severity of this issue and commit to fixing it? It feels extremely dismissive to be not even have these acknowledged as critical issues.

jazir555 avatar Oct 09 '25 22:10 jazir555

same here ✕ [API Error: Model stream ended with empty response text.] ,

WGSTecnologia avatar Oct 10 '25 00:10 WGSTecnologia

same here

cmvalla avatar Oct 10 '25 05:10 cmvalla

@bobcatfish Also I like how you marked mine as the duplicate when my issue was opened earlier. Class act.

jazir555 avatar Oct 10 '25 06:10 jazir555

same here, on macOS 18.6 with Gemini CLI 0.8.1

HungB211845 avatar Oct 10 '25 06:10 HungB211845

Hello everyone, Yes, it's annoying. I feel like I'm playing the beta tester, but I'm also paying to do it. I signed up for a subscription, which will soon become paid, and frankly, I'm kicking myself. The CLI has been almost usable since signing up, compared to the first versions, which worked much better. I've done more with the versions from the opening in late June to mid-September than since then. So, Google, it's fine to use Gemini via CLI, but don't let us pay for a subscription without any tangible feedback, just to 'test' your betas.

stef-ladefense avatar Oct 10 '25 12:10 stef-ladefense

Well I have confirmed what the problem was - it works well with API key, but if we try to use license limits it fails. Confirmed on multiple accounts. Way to go!

Sent via Superhuman ( @.*** )

On Fri, Oct 10, 2025 at 2:22 PM, Stéphane < @.*** > wrote:

stef-ladefense left a comment (google-gemini/ gemini-cli#10528) ( https://github.com/google-gemini/gemini-cli/issues/10528#issuecomment-3389800177 )

Hello everyone, Yes, it's annoying. I feel like I'm playing the beta tester, but I'm also paying to do it. I signed up for a subscription, which will soon become paid, and frankly, I'm kicking myself. The CLI has been almost usable since signing up, compared to the first versions, which worked much better. I've done more with the versions from the opening in late June to mid-September than since then. So, Google, it's fine to use Gemini via CLI, but don't let us pay for a subscription without any tangible feedback, just to 'test' your betas.

— Reply to this email directly, view it on GitHub ( https://github.com/google-gemini/gemini-cli/issues/10528#issuecomment-3389800177 ) , or unsubscribe ( https://github.com/notifications/unsubscribe-auth/AA2O5SQP4X2MAN6LX6HJ7OL3W6QHXAVCNFSM6AAAAACIINJQZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGOBZHAYDAMJXG4 ). You are receiving this because you commented. Message ID: <google-gemini/gemini-cli/issues/10528/3389800177 @ github. com>

M1steRny avatar Oct 10 '25 14:10 M1steRny

I've the same problem : ✕ [API Error: Model stream ended with empty response text.]

njafarynia avatar Oct 10 '25 21:10 njafarynia

I've the same problem : ✕ [API Error: Model stream ended with empty response text.]

ashanuoc avatar Oct 11 '25 01:10 ashanuoc

@bobcatfish Are we ever going to get any response on when this will be fixed?

jazir555 avatar Oct 11 '25 01:10 jazir555