Continuosly receiving “recording.completed” event twice for the same meeting. The delay between events is exactly 5mins.
All other events has no such problems. And I’m pretty sure that my handler responses with 200 status code in less then 30seconds.
Does anyone know where problem could be?
Yes, I’m getting the same thing! I had been running a lambda function on Netlify using this webhook and it had been working perfectly for weeks. The first time this issue started happening was on July 14 and the only thing I had changed in my codebase recently was adding an email address to a whitelist.
I switched my app over to a webhook-only app, because the version I had setup wasn’t giving me any Zoom logs. I started monitoring the Zoom call logs. I thought maybe the response wasn’t coming back fast enough from my function and so Zoom was firing off a retry request. But the logs show that the success response time is about 3-5 seconds, which seems like it should be fine.
The other odd thing is that the second webhook request always fires about 5 minutes after the first one. If it was a retry request, I would expect it to fire again immediately.
Is anyone else having this issue or does anyone have more ideas about what could be going on? I’m wondering if something changed in the Zoom codebase around this time to cause a bug.
After a little more looking into the logs, I think the second request actually is a retry request. I found this in the headers:
"X-Zoom-Retry-Reason": "hystrix time out",
"X-Zoom-Retry-Num": "1",
"x-zm-trackingid": null,
The thing I don’t understand is how I got a success response back in less than 5 seconds, but the function still timed out. I think I’m going to have to look into the Netlify side of things to debug this.
@juchkov11, are you using Netlify lambda as well? Just curious if we’re having the same issue or something different.
Hi, no. In my case handler is running on dedicated server. So, I think problem is not depending on environment. I will try to respond with 204 status code and see how it goes.
Hey @juchkov11 and @drosentrater,
I’d suspect this might be a network issue that our end didn’t receive the ack, thus we sent it twice.
Can you direct message me with your account id and meeting id so I can look into this further?
Thanks,
Tommy
Good morning, @tommy!
It seems I have no privileges to send direct messages. (probably because I am new forum user). Could you please suggest another way to communicate?
@tommy I’m in the same boat. I don’t think I have spent enough time on the message board to be able to send direct messages yet. Perhaps you can message me? Otherwise, I’ll spend some more time on the forum until I get messaging privileges.
Just private messaged both of you.
We’ve confirmed this was triggered by retry. However, we are still researching if feasible for us to further improve our current network error detection logic. For now, please disregard the 2nd callback message.
Thanks,
Tommy
To fix this, try sending a 200 response back within a few seconds (1 second if possible). If Zoom does not get the 200 response, it initiates retry logic after 5 mins.
Here is an example of how to send a 200 response after receiving a webhook event in Node.js / Express
app.post('/webhook', async function (req, res) {
// need to respond within 1 second with a 200 or else Zoom thinks webhook did not work and will retry.
res.status(200)
res.send()
// your app logic here
})
https://derickbailey.com/2016/03/14/properly-handling-webhooks-with-node-and-express/
Thanks,
Tommy
We have updated our docs with how to respond to webhooks.
Thanks,
Tommy
Hello @ tommy
I am using recording.completed
event notification
I am able to download my recording video in postman with the help of download url and also able to download but not able to download from node js code
var fs = require(‘fs’);
const https = require(‘https’);
var file = fs.createWriteStream(fileName);var request = https.get("https://zoom.us/rec/webhook_download/65x8fuv-?access_token=ddfggg", function (response) { console.log(response); response.pipe(file); file.once('close', function() { try { var stat = fs.statSync(fileName); console.log(stat); } catch (err) { console.log(err)} }); }).on('error', function (err) { console.log("error", err);// Handle errors fs.unlink(fileName); reject(err); });
Hey @laxman,
What is the error you are getting from the Node.js code.
It sounds like this could be an issue with your Node.js code, have you tried googling the error?
Thanks,
Tommy