API Error: Model stream ended with empty response text.
What happened?
With the latest version I am getting these API Errors quite a bit. It says:
✕ [API Error: Model stream ended with empty response text.]
and then stops the workflow. I usually have to reprompt it saying "You received an API error, please continue your workflow".
This seems to happen mainly when reading many files, but it has happened other places as well.
What did you expect to happen?
I expected Gemini CLI to finish it's workflow.
Client information
- CLI Version: 0.8.1
- Git Commit: a0987602
- Session ID: f1a510e2-d80f-4288-b455-deaafb088e5f
- Operating System: win32 v22.17.0
- Sandbox Environment: no sandbox
- Model Version: gemini-2.5-pro
- Memory Usage: 458.8 MB
Login information
I login with a Google Workspace account with Code Assist Subscription
Anything else we need to know?
This API error has been happening way more (it seems) with version 0.8.x.
same
Seems like a lot of folks are seeing this, not sure that's expected and just not being handled gracefully, or indicative or something more serious. Either way gonna concentrate the efforts in #10672 which is about the same thing 🙏
same
same
i get this all the time its extremely annoying because he has to read the context again and is essentially burning tokens doing that, very scammy action. Claude code never has this problem or very rarely,
yeah it happened almost every single time. and i also noticed that it usually have this issue only after it finished a change (such a edit/copy or whatever, no mater the change is successful or not).
Same.
Same Please fix it.
https://github.com/google-gemini/gemini-cli/issues/10678 add a timeout option can fix it timeout: 300000, // 5 minutes (300000ms) instead of default 0
Same.
It is highly annoying. I can barely make progress. It is happening quite a bit. Using "You received an API error, please continue your workflow" works for me.
Update: it is not working and is making the tool unusable.
Same. too much annoying
same! Got this multiple times in single therad.
Yes. And also today the gemini cli is so dumb omfg
same
same
Same. The tool has turned into garbage.
same