:wave: Hello, team!
# ask-ai
m
👋 Hello, team!
t
Thanks for reaching out, Rithwikreddy. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi — glad you reached out! What can I help you with today? • Are you reporting an issue, asking about integration/setup, or looking for guidance on a specific LiveKit feature? • If it’s an issue, please share any error messages, room ID, SDK (web/iOS/Android), and steps to reproduce.
m
2:11 DEBUG livekit.agents using audio io:
RoomIO
->
AgentSession
->
TranscriptSynchronizer
->
RoomIO
DEBUG livekit.agents using transcript io:
AgentSession
->
TranscriptSynchronizer
->
RoomIO
DEBUG livekit.agents start reading stream {"participant": "sip_18052225602", "source": "SOURCE_MICROPHONE"} DEBUG livekit.agents input stream detached {"participant": "sip_18052225602", "source": "SOURCE_MICROPHONE", "accepted_sources": ["SOURCE_MICROPHONE"]} DEBUG livekit.agents stream closed {"participant": "sip_18052225602", "source": "SOURCE_MICROPHONE"} DEBUG livekit.agents session closed {"reason": "error", "error": "type='stt_error' timestamp=1764093130.9058545 label='livekit.agents.inference.stt.STT' error=WSServerHandshakeError(RequestInfo(url=URL('wss://agent-gateway.livekit.cloud/v1/stt'), method='GET', headers=<CIMultiDictProxy('Host': 'agent-gateway.livekit.cloud', 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpbmZlcmVuY2UiOnsicGVyZm9ybSI6dHJ1ZX0sInN1YiI6ImFnZW50IiwiaXNzIjoiQVBJUWdyeVhhSmdScWlkIiwibmJmIjoxNzY0MDkzMTMwLCJleHAiOjE3NjQwO… 'Upgrade': 'websocket', 'Connection': 'Upgrade', 'Sec-WebSocket-Version': '13', 'Sec-WebSocket-Key': 'P0RHfWEHytnLJlIDE6n89w==', 'Accept': '*/*', 'Accept-Encoding': 'gzip, deflate', 'User-Agent': 'Python/3.11 aiohttp/3.13.2')>, real_url=URL('wss://agent-gateway.livekit.cloud/v1/stt')), (), status=429, message='Invalid response status', headers=<CIMultiDictProxy('Content-Length': '208', 'Content-Type': 'text/plain; charset=utf-8', 'Date': 'Tue, 25 Nov 2025 175210 GMT')>) recoverable=False"}
t
Thanks — I’m looking at the STT error you shared. This is a WebSocket handshake failure to the STT endpoint with HTTP status 429 (Too Many Requests), which means the inference gateway is rate-limiting your connection attempts. I’m responding to the log lines showing: session closed with error type
stt_error
and a WSServerHandshakeError status=429. What you can do next • Reduce concurrent STT connections (Build plan is limited to 5 concurrent STT connections). Close/reuse sessions or queue new STT starts so you don’t exceed concurrency. • Add retry/backoff when creating
AgentSession
STT connections (exponential backoff) so new attempts don’t hammer the gateway. • Verify you aren’t unintentionally opening duplicate STT connections per participant. • If you need more concurrency, upgrade your LiveKit Cloud plan to increase STT limits. Quick diagnostic help I can provide • Tell me your project ID and approximate concurrent agent/STT connections right now, or • Share how you create AgentSession/STT connections in your code (small snippet) so I can point out where to add reuse/queueing or retries. Would you like an example retry/backoff snippet for your SDK (Python or another)? Sources: Events and error handling | LiveKit docs | Quotas and limits | LiveKit docs | Firewall Tips | Still Have Questions