Why agent's current status is coming as error? How...
# ask-ai
m
Why agent's current status is coming as error? How to troubleshoot?
✅ 1
t
Thanks for reaching out, Adithya. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to your question about why an agent’s status shows “error” and how to troubleshoot it. Quick checklist to find the root cause 1. Check the agent’s
failureReasons
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