Getting "end of call report" 2 times in webhook
# support
s
Hello team I am facing issue in every assistant in webhook getting end of call report two times which is causing issue for me Assistant id - 34c92e26-aa44-4038-933d-e7c678c8238f call id - 019abfe1-5034-711c-aa67-f1dfd5fefee1
v
To prevent receiving duplicate "end-of-call-report" webhooks, make sure your webhook endpoint always responds quickly with a 200 OK status. For example, in Express.js:
Copy code
js
app.post('/webhook', (req, res) => {
  // Handle the webhook logic here
  res.status(200).send('OK'); // Respond immediately
});
This ensures Vapi knows your server received the event, avoiding retries and duplicate reports. For more details, see the [Server events documentation](https://docs.vapi.ai/server-url/events). Source: - [Server events documentation](https://docs.vapi.ai/server-url/events)
v
Message marked as helpful by @Sachin Jaiswal! 🎉
s
@Vapi Support Bot not helpful it didn't worked
It's still causing issue
v
To avoid duplicate "end-of-call-report" webhooks, make sure your webhook handler responds immediately and processes the event asynchronously. Here’s an example in Express.js:
Copy code
js
app.post('/webhook', async (req, res) => {
  res.status(200).send(); // Respond right away
  // Process the event in the background (e.g., queue it for later)
});
This prevents Vapi from retrying the webhook due to timeouts or slow processing. For more details, see the [Vapi CLI webhook documentation](https://docs.vapi.ai/cli/webhook#timeout-errors). Source: - [Vapi CLI webhook documentation](https://docs.vapi.ai/cli/webhook#timeout-errors)
s
What will go in error case
c
Could you please provide a call id where you received the end-of-call report twice?