why does the send a test event button not making t...
# ask-ai
n
why does the send a test event button not making the webhook api call in livekit cloud?
t
Thanks for reaching out, Hari. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Could you please help me by confirming a few details? This will make it easier for us to figure out why the 'Send a Test Event' button isn’t triggering the webhook API call: • Is your webhook URL set up correctly and accessible? • Does your endpoint respond with a 2xx status code to confirm it received the event? • Have you tried receiving real webhook events, beyond just the test ones? Sources: Webhooks | LiveKit Docs | test/webhook_test.go | webhook/webhook_test.go
n
Yes, when I hit the API normally it works. But when i provide the same url to webhooks in livekit cloud and use the 'send a test event', it doesn't send any event to the hook
t
I'd love to help you get this sorted out! To better understand what's going on, could you please share a bit more? • Are you seeing any error messages when you click the 'Send a Test Event' button? • Have you had a chance to check that your webhook URL is publicly accessible and set up correctly in the LiveKit Cloud dashboard? • Is this happening with all events, or just certain types? Sources: webhook/resource_url_notifier.go | Webhooks | LiveKit Docs
n
1. No error during the button click 2. Yes, it is publicliy available, have verified that 3. All the event types 4. Even with the real interview, it is not working
t
Let's walk through some helpful steps to troubleshoot why webhook events, both test and real, might not be coming through in LiveKit Cloud. I’m here to help you get this sorted out! • First, please make sure your webhook endpoint is set up to accept HTTP POST requests with
Content-Type: application/webhook+json
. This is key for proper communication. • Next, double-check that your server is validating the
Authorization
header correctly. This header includes a signed JWT token with a SHA256 hash of the payload, which helps keep things secure. • Sometimes, events can be dropped if the queue is too full or processing is slow. Look out for queue depth limits (200 events per resource) or age limits (30 seconds) that might be causing this. • It’s also a good idea to review your event filtering settings to ensure they aren’t accidentally blocking the events you want to receive. • Make sure your endpoint is responding quickly enough to avoid timeouts, which can interrupt event delivery. • When your server responds, it should send a successful HTTP status code like 200 to confirm receipt. If it doesn’t, LiveKit will try sending the event again. • Lastly, check for any firewall or TLS/SSL settings that might be preventing incoming requests from reaching your server. To help diagnose the issue further, try adding some logging on your endpoint to keep track of: • The order and timing of events, so you can spot any gaps that might suggest dropped events. • The HTTP status codes your server sends back to LiveKit, confirming that events are received successfully. • Validation results for the
Authorization
header and payload hash, ensuring everything is authenticated properly. If after going through these steps you’re still having trouble, please don’t hesitate to reach out. I’m more than happy to assist you further and get everything running smoothly! Sources: webhook/webhook_test.go | Webhook & Event System | livekit/livekit_composite | DeepWiki | Webhooks | LiveKit Docs | livekit-api/tests/test_webhook.py
n
Still not working, do i need to enable it anywhere apart from craeting the webhook in the cloud settings?
t
Thanks for reaching out! I’m happy to help you with setting up webhooks in LiveKit Cloud. The great news is that no extra steps are needed beyond creating them in the cloud settings. Once you’ve done that, LiveKit will automatically send HTTP POST requests to the URL you specified whenever events occur. Just a couple of things to double-check: • Make sure your server is ready to receive HTTP POST requests with
Content-Type: application/webhook+json
. • Also, please verify that the
Authorization
header with the signed JWT token is properly validated using LiveKit’s server SDKs. If you’ve gone through these and things still aren’t working as expected, don’t hesitate to reach out. I’m here to help you get this sorted! Sources: Webhooks | LiveKit Docs
n
All of the above are set correctly. My API is not even gettiing called let alone the authorization failures/ responses
t
It looks like your API isn’t being called at all, so let’s explore some possible reasons and steps to troubleshoot together: • First, make sure there are no network or connectivity issues with your webhook endpoint. It’s important to confirm that your server is reachable from the internet. • Take a moment to double-check the endpoint URL you’ve set up in the LiveKit Cloud dashboard—sometimes a small typo or misconfiguration can cause this. • Also, please verify that your server is listening on the correct port and isn’t being blocked by a firewall or any security settings. • Ensure your server is set up to accept requests with
Content-Type: application/webhook+json
, as this is key for proper communication. • Sometimes webhook events might be dropped due to system overload or internal errors. LiveKit does retry failed deliveries, but if failures keep happening, events might get dropped. • It’s really helpful to check your server logs to see if any requests are actually reaching your server and if there are any errors during processing. If you’ve gone through these steps and things still aren’t working, please don’t hesitate to reach out—I’m here to help you get this sorted! Sources: Webhooks | LiveKit Docs | livekit-api/tests/test_webhook.py | protobufs/livekit_analytics.proto