narrow-train-3059
12/12/2025, 7:55 AMtall-airline-16756
12/12/2025, 7:56 AMtall-airline-16756
12/12/2025, 7:56 AMnarrow-train-3059
12/12/2025, 8:03 AMtall-airline-16756
12/12/2025, 8:04 AMstatus_code=-1, request_id=None, body=None, and retryable=True. I’ll help narrow this down.
What this typically means
• The client failed before a valid HTTP response was received from Sarvam — most often a network- or client-side failure (connection timeout, DNS failure, connection reset, or interruption during the request).
• retryable=True indicates the LiveKit agent marked it transient and may retry.
• Missing request_id and body means Sarvam didn’t return a populated error response.
Please provide these items so I can diagnose precisely
• Agent/server logs around the failure (include timestamps and any stack traces).
• Whether the Sarvam integration uses the Python plugin and that SARVAM_API_KEY is set.
• When the error occurs: on initial connect, after streaming starts, or intermittently.
• Network context: server location, proxy, VPN, firewall rules, or intermittent packet loss.
• Audio format being sent (sample rate, channels, PCM/encoded).
• Any retry behavior seen (how many retries, backoff).
Immediate checks you can run
• Verify SARVAM_API_KEY is present and not expired.
• Test basic connectivity from the agent host to Sarvam endpoints (DNS resolve + TCP connect) and note latency/timeouts.
• Check for firewall/proxy/NAT issues or VPNs that could reset long-lived connections.
• Confirm the client is sending the expected audio format/frame envelope required by the Sarvam plugin.
• Increase client-side timeouts and capture a single failed request with full request/response (if any) and network trace (tcpdump) for the exact moment.
If you share the logs and answers above, I’ll pinpoint likely root causes and next steps (specific config changes, retry tuning, or fallback options). Would you like help collecting the exact log snippets and commands to run for connectivity checks?
Sources: Events and error handling | LiveKit docs | Sarvam STT plugin guide | LiveKit Docs