Is Gemini API broken again?

2025-08-19 15:27:29 - google_ai.gemini - INFO - gemini.py:49 - Messages text length: 55528
2025-08-19 15:27:29 - google_genai.models - INFO - models.py:6418 - AFC is enabled with max remote calls: 10.
2025-08-19 15:27:32 - google_genai.models - INFO - models.py:6429 - AFC remote call 1 is done.
2025-08-19 15:27:32 - google_ai.gemini - ERROR - gemini.py:77 - Google AI API returned None text response for some reason: sdk_http_response=HttpResponse(
headers=
) candidates=[Candidate(
content=Content(
role=‘model’
),
finish_reason=<FinishReason.STOP: ‘STOP’>,
index=0
)] create_time=None model_version=‘gemini-2.5-pro’ prompt_feedback=None response_id=‘5JekaP2sOIO6qtsP8vyO-Ao’ usage_metadata=GenerateContentResponseUsageMetadata(
prompt_token_count=15880,
prompt_tokens_details=[
ModalityTokenCount(
modality=<MediaModality.TEXT: ‘TEXT’>,
token_count=15880
),
],
thoughts_token_count=49,
total_token_count=15929
) automatic_function_calling_history= parsed=None

Happen around every other call. Retried sometime fix it

2 Likes

Hello,

Could you please describe your issue a bit more and if possible let us know your configuration as well?

Hi,
can you please describe your problem?

http://catb.org/~esr/faqs/smart-questions.html

the problem is just calling the api 2.5 pro. Don’t know why it fails, always randomly. Could the API return failure reason?