Webhooks Not Received

I created three webhooks. I noticed that each webhook was not getting all events. Is it possible that api.video is using a round-robin approach to sending events to webhooks rather than sending all events to all webhooks?

1 Like

@greg.s

We just tested your webhooks, and saw the correct responses on all of them. One thing to note is that 2 of your webhooks are in production and the other is in Sandbox.

The prod webhooks will only report on events in prod, and sandbox only for sandbox - this might explain why you are not seeing all of the events. Would you mind checking that the webhooks are correctly reporting for the domains that they work on? If there is a deeper issue, we definitely want to resolve it for you!

Doug

Thanks for the response, Doug. I was testing on production. I had a 3rd webhook setup using webhook.site to easily monitor activity, which I deleted after posting the message on the forum.

After uploading a video, I received only 4 webhooks:

{
“type”: “video.encoding.quality.completed”,
“emittedAt”: “2021-08-09T02:41:33.722Z”,
“videoId”: “vi3PSUrOd2F6uAHp1sGHgz9V”,
“encoding”: “hls”,
“quality”: “480p”
}

{
“type”: “video.encoding.quality.completed”,
“emittedAt”: “2021-08-09T02:39:57.387Z”,
“videoId”: “vi3PSUrOd2F6uAHp1sGHgz9V”,
“encoding”: “mp4”,
“quality”: “1080p”
}

{
“type”: “video.encoding.quality.completed”,
“emittedAt”: “2021-08-09T02:39:38.344Z”,
“videoId”: “vi3PSUrOd2F6uAHp1sGHgz9V”,
“encoding”: “hls”,
“quality”: “1080p”
}

{
“type”: “video.encoding.quality.completed”,
“emittedAt”: “2021-08-09T02:36:40.254Z”,
“videoId”: “vi3PSUrOd2F6uAHp1sGHgz9V”,
“encoding”: “hls”,
“quality”: “240p”
}

So there are a few possibilities that come to mind:

  1. webhook.site didn’t properly report some of the webhook posts
  2. my understanding of the number of webhooks is incorrect. How many should there be?
  3. api.video didn’t send all the webhooks (although this seems unlikely based on your comment that you checked logs)

Our logs show 6 webhook requests made to webhook.site, all responded with a 200 ok.

It appears they “lost” the 240p, 360p, and 720p on it’s way to you :frowning:

Let me know if I can help you troubleshoot further,

Doug