Thanks for reaching out, Aleh. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
tall-airline-16756
12/11/2025, 12:57 PM
You're seeing a connection interruption and a failed resume attempt. Quick breakdown of each log line and what to check:
• "TTS metrics" — informational: the agent produced TTS just before the issue (no action needed).
• "received session close: 'server request to leave' ConnectionTimeout Resume" — the server terminated the session because a resume attempt timed out. Check reconnection timing and network reliability between client and server.
• "received session close: 'signal client closed: \"stream closed\"'" — the signaling (WebSocket) stream was closed. Common causes: unstable network, client process exit, or a proxy/TLS termination closing long-lived connections.
• "resuming connection... attempt: 0" — client started automatic reconnection; this was the first retry.
• "Wrong packet sequence while retrying: 281 > 276, 5 packets missing" — RTP packet sequence jumped, indicating packet loss or out-of-order delivery during the resume. This is a symptom of transport instability or media-path desync.
Most likely root causes
• Network instability or packet loss between client and SFU
• Signaling/WebSocket interruption (firewall, proxy, TLS inspection, or client crash)
• Resume window expired or resume attempted against a different media node
Recommended next steps
1. Check network quality (packet loss, jitter, RTT) for the client and agent around the timestamp.
2. Test without corporate proxies / TLS inspection (Zscaler-like middleboxes can close WebSockets).
3. Use the LiveKit Connection Tester or webrtc-internals to inspect packet loss, NACKs, RTT, and ICE/TURN behavior.
4. Confirm the client handled Reconnecting events and retried quickly enough to meet resume timing.
5. If this is an agent process (job_id shown), verify the agent wasn’t CPU-starved or killed.
If you want, tell me:
• whether this happened repeatedly or was a one-off,
• whether the client was behind a corporate proxy/firewall,
• and any webrtc-internals or Connection Tester results you have — and I’ll suggest targeted fixes. Sources: Connecting to LiveKit | LiveKit docs | Zscaler proxy configuration | Firewall Tips | Diagnosing Connection Errors with Connection Test Utility