Gemini 2.5 Pro with empty response.text

Based on my tests it didnt happened with openrouter paid version but at the same time in both gemini cli and aider it is happening with free tier only and now its getting worse.

By the way, we cant blame google because of that! As a developer we didnt see any model near it in coding complex tasks and google let us use it for free for several months which was amazing for one of our projects. (Mabye around 1000 doller a month if we wanted to use paid version!)

We hope google fix it.

Edit
Because of lower server loads at around 7 pm utc it works better.

Was just trying openrouter and came here to say the same, it looks like it works there

Here is a link to a survery where you can express you dissatisfaction:

Yes, we shouldn’t blame Google, hopefully they can fix these issues before the beautiful September arrives.

Thanks for all the efforts but I think these problems are all well known by Google. I think its not straight forward and easy to fix. My gut feeling tells me this is a problem with the model, not the API itself. Previous response by @Logan_Kilpatrick in this thread:

Logan is the Product Owner for the Google Gemini API and Google AI Studio.

@Rodger_Blom I can imagine that this issue is very non-trivial and no doubt hard, but they stated that this is a production ready model that they charge for, and that you can build your own project, product, or company with. They either need to move it back to a pre-release and stop charging, or fix it.

@Logan_Kilpatrick please give us an update

Couldn’t agree more. They shouldn’t have released it like this. The competition is insane so they didn’t want to wait any longer I guess.

the whole api is not working now even on paid tier the flash-flash lite and pro are all not working and returning error 500

The situation seems to be improving.

Yes, just a little :frowning: But still 503 errors.

Guys actually it works. We hope for long, not just for few days

Hi,
Any update on this ticket?
I believe I got this problem inside my system but I am not pretty sure.
How do I reproduce this bug consistently ?
Is it by Sending multiple request at once from 1 IP address?

Now it is 503 again, I don’t know how can I believe in gemini?

Hey, still seeing a lot of empty responses from vertex AI when using 2.5 flash.
Any updates on this?

We had the same issue with our production app. Adding a retry logic or even a retry with progressive backoff didn’t really help.

We then created another google api key ( belonging to a new project) and incase of empty response we retry with the backup key.

This has drastically reduced the empty response issue for us.

Join our open source effort to Fix Broken/Irrelevant Gemini Citations

Thanks, will try this out!

"[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] returned an empty response (Attempt 18/50). Retrying in 3s..." 
Warning
 "[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] returned an empty response (Attempt 19/50). Retrying in 3s..." 
Warning
 "[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] returned an empty response (Attempt 20/50). Retrying in 3s..." 
Warning
 "[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] returned an empty response (Attempt 21/50). Retrying in 3s..." 
Warning
 "[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] returned an empty response (Attempt 22/50). Retrying in 3s..." 
Warning
 "[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] returned an empty response (Attempt 23/50). Retrying in 3s..." 
Error
 "[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] failed on attempt 24/50:"  "{\"error\":{\"code\":429,\"message\":\"You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.\",\"status\":\"RESOURCE_EXHAUSTED\"}}" 
Error
 "[SYSTEM] Step [cognitive] on model [gemini-2.5-flash] failed on attempt 25/50:"  "{\"error\":{\"code\":429,\"message\":\"You exceeded your current quota, please check your plan and billing details. For more information on this error, head to: https://ai.google.dev/gemini-api/docs/rate-limits.\",\"status\":\"RESOURCE_EXHAUSTED\"}}" 

That’s not fair!
The quota is decreasing, but I am getting no responses! The rerunning prompt helped me somtimes after a few retries.

Hi @Bryan_Hughes thanks for starting this thread but I think we can conclude Google (@Logan_Kilpatrick) is not going to fix this. Rumors are building up on the release of Gemini 3. It is my believe that all energy is focused on the Gemini 3 release so they can burn this ship (Gemini 2.5) down.

Hi @Rodger_Blom, agreed, which is lame enough because while sure, if 3.0 is such a change that this issue goes away then why bother, but certainly doesnt give me any warm and fuzzy that this behavior will continue. I am pretty sure we are getting charged for the empty-responses but it is challenging to know for sure. I put in a feature request where the request should get back an identifier to final costs of the token usage relative to whatever rate you are at based on the token count. It would be nice to have this level of itemized billing - knowing that this request cost $.10 or $1.