Is there a way to listen to errors happening on Li...
# ask-ai
l
Is there a way to listen to errors happening on Livekit side. There are times when Livekit dashboard shows error but we dont get any notifiction
t
Thanks for reaching out, Deepak. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It sounds like you’re looking for a way to get alerted about errors beyond what the dashboard shows. You can set up real-time notifications via: • Webhooks: Configure project webhooks to receive events (room/participant, egress/ingress lifecycle, etc.) and route them to your alerting system (Slack/Pager/Email). You can filter to just the event types you care about. Webhooks | LiveKit docs • Egress-specific webhooks: Add a
WebhookConfig
on each egress request to be notified when jobs start/end/fail. Egress API | LiveKit Docs • Agents runtime errors: If you use Agents, subscribe to
ErrorEvent
to detect recoverable/unrecoverable errors in sessions. Events and error handling | LiveKit docs If you’re building reliability around alerts, you can also monitor webhook delivery health (retries/drops) and alert from your metrics pipeline. I can share example event filters or a minimal webhook handler—what kinds of errors do you need to catch (egress failures, room issues, agent errors)? Sources: Webhooks | LiveKit docs | Webhook & Event System | livekit/livekit_composite | DeepWiki | Egress API | LiveKit Docs | Events and error handling | LiveKit docs | Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki
l
I am looking for alerts for cases where status = Failed in Livekit dashboard
t
Got it—you want alerts whenever something shows as “Failed” in the LiveKit dashboard. You can automate alerts using: • Webhooks (recommended): Configure project webhooks and trigger alerts when failure events arrive (e.g., egress ended with error). Filter to only failure-related events and route to Slack/PagerDuty/email. Webhooks • Egress-specific alerts: Include
WebhookConfig
in each egress request to get start/end/fail notifications for that job. Egress API • Agents failures (if applicable): Poll
lk agent status
and alert on states like Error/CrashLoop/Build Failed. Agent CLI Would you like a minimal webhook handler example and the specific event filters to catch failure cases you care about (e.g., egress failures vs. room/ingress issues)? Sources: Deploying to custom environments | LiveKit Docs | Deploying to production | LiveKit Docs | Agent deployment CLI reference | LiveKit Docs | Webhooks | LiveKit docs | Webhook & Event System | livekit/livekit_composite | DeepWiki
l
how to know errors specific to a call session
t
To track errors for a specific call session, you can tie webhook events to the room/session and (optionally) enrich with Analytics: • Use webhooks to listen for session/error-related events and include room info: ◦ Key events:
participant_connection_aborted
,
participant_left
,
room_finished
, and any `egress_*`/`ingress_*` if used. ◦ Each webhook includes
room.name
and participant/egress identifiers so you can pinpoint the exact call. Webhooks • Filter to just failure/termination events and alert on those. The dispatcher keeps events ordered per resource (room, participant, egress) to preserve context. Webhook & Event System • For deeper per-call diagnostics, query the Analytics API for that session (match by
roomName
+ time window to get
sessionId
, then fetch details: participants, devices, connection times/quality). Analytics API • If recording/streaming is involved, add per-request
WebhookConfig
to egress jobs and alert on
egress_ended
with error details. Egress API Want a minimal event filter list and example payload fields to key on (room, participant, egress) for your handler? Sources: Webhooks | LiveKit docs | Webhook & Event System | livekit/livekit_composite | DeepWiki | Analytics API | LiveKit docs | Egress API | LiveKit Docs