Immutable solution version
Gemini Live API sessions hang when a query should trigger a function call
Complete solution
Shows how to fix gemini Live API sessions hang when a query should trigger a function call. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
We are experiencing a critical issue with the Gemini Live API using the gemini-2.0-flash-live-001 model, specifically when attempting to use function calling.
Steps
- We are experiencing a critical issue with the Gemini Live API using the gemini-2.0-flash-live-001 model, specifically when attempting to use function calling. Starting approximately on Tuesday, May 13, 2025, around 4:00 AM UTC+3, API sessions began to hang indefinitely when a query is made that should trigger a function call. Symptoms: API Hangs: When a prompt intended to trigger a declared function is sent, the API session stops responding.
- Gemini Live API sessions that used to work suddenly hanging on function calls, with the socket staying open, was a Google server-side incident on gemini-2.0-flash-live-001, fixed about two days after the report with no client change needed. Reusable lesson: reproduce the same call in AI Studio; if it hangs there too, it's a service-side incident, not your code, so file it and wait. Client-side, add reconnect with backoff on hung sessions so your app recovers on its own once the backend is fixed.
When to use
You are seeing this: Starting approximately on Tuesday, May 13, 2025, around 4:00 AM UTC+3, API sessions began to hang indefinitely when a query is made that should trigger a function call. Use this skill when you run into "Gemini Live API sessions hang when a query should trigger a function call".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
In gh:googleapis/python-genai#803 (https://github.com/googleapis/python-genai/issues/803), the reporter ran into this: We are experiencing a critical issue with the Gemini Live API using the gemini-2.0-flash-live-001 model, specifically when attempting to use function calling. Starting approximately on Tuesday, May 13, 2025, around 4:00 AM UTC+3, API sessions began to hang indefinitely when a query is made that should trigger a function call. Symptoms: API Hangs: When a prompt intended to trigger a declared function is sent, the API session stops responding. The verified resolution: Gemini Live API sessions that used to work suddenly hanging on function calls, with the socket staying open, was a Google server-side incident on gemini-2.0-flash-live-001, fixed about two days after the report with no client change needed. Reusable lesson: reproduce the same call in AI Studio; if it hangs there too, it's a service-side incident, not your code, so file it and wait. Client-side, add reconnect with backoff on hung sessions so your app recovers on its own once the backend is fixed.
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_iDQk4pDuP7R6AU0g-tKsJw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Gemini Live API sessions hang when a query should trigger a function call <span>— Vectle</span></a>