millions-keyboard-58792
04/19/2026, 12:20 PMtall-airline-16756
04/19/2026, 12:20 PMtall-airline-16756
04/19/2026, 12:21 PMfailureReasons field in the frontend — it often contains the specific error message.
2. Listen for agent_state_changed events on the session to see the exact state transitions that led to the error.
3. Enable debug logs on the agent process (--log-level=DEBUG) and look for runtime exceptions or messages like "uploading session report" / "finished uploading".
4. View the Agent Observability dashboard in LiveKit Cloud for session metrics, error traces, and synchronized audio to narrow where it failed.
5. Inspect tool code for unhandled exceptions — use ToolError for predictable errors instead of letting tools crash.
6. Verify LLM/tool configuration: timeouts, max tokens, and compatibility (some models/plugins can fail on mid-session updates).
7. For self-hosted deployments, confirm the agent process can receive clean shutdown signals (SIGTERM) so it can drain and upload observability data.
If you still see the error after those checks, tell me:
• The failureReasons text (if available),
• Which agent state it entered before the error, and
• Whether you’re using Cloud or a self‑hosted agent.
I’ll use that to recommend the next debug steps.
Sources: Build agent experiences faster with Session APIs | LiveKit | Agent session | LiveKit Documentation | Turns overview | LiveKit Documentation | Why is my Agent insights data missing? | LiveKit | Server options | LiveKit Documentation, with interactive elements