Gemini Live API Issues: 1008/1011 Disconnects, Per-Session Cost, Function Calling, API Logs

Hi again @Joe_Hu !
We were hitting the same 1008 errors. After investigation, we found the root cause was
a race condition in how we handled realtime input during tool calls.

Here’s what solved it for us:

Zero errors in testing so far with this approach.

I hope this helps!