Your server rejected `end-of-call-report` webhook....
# support
d
why do we get these errors ? we have alot of calls with this error. example call id 5c9ea1cf-e896-4b64-b1c8-32642e755de9
Your server rejected
end-of-call-report
webhook. Error: Request failed with status code 400
Your server rejected
status-update
webhook. Error: Request failed with status code 400
multiple errors on calls
v
Hi there! I understand you're experiencing status code 400 errors with the
end-of-call-report
webhook in Vapi. While I can't determine the exact cause for your specific call ID without more information about your server implementation, I can definitely help explain potential causes and provide troubleshooting steps for these 400 errors. ## Potential Causes for the 400 Error There are several possible reasons why your server might be rejecting the
end-of-call-report
webhook with a 400 status code: 1. **Server URL Issues**: Your server URL might be returning a 400 error because of incorrect tools or configurations on the server side. According to [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1327481613004701779), a status code of 400 indicates a bad request. 2. **Webhook Configuration Issues**: There might be a misconfiguration in the webhook URL settings within your VAPI account. Double-check that the webhook URL is correctly configured and accessible from the internet. 3. **Data Format Mismatch**: The data structure being sent from VAPI might not match the format expected by your server's webhook endpoint. 4. **Headers and Authentication**: If your webhook requires specific headers or authentication tokens, ensure these are correctly included in the function call. 5. **Call Status Discrepancies**: If you're using Twilio, a 400 error can occur because VAPI expects a "ringing" call status, but Twilio changes it to "in-progress" after DTMF digit collection. ## Troubleshooting Steps Here are some steps you can take to resolve these errors: 1. **Check Server Logs**: Review your server logs to understand why it's returning a 400 status code. 2. **Verify Webhook Configuration**: Go to your bot settings -> advanced -> server messages. Set it to "end-of-call-report" only, as mentioned in [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341417477631901769).
3. **Test Webhook Manually**: Try sending a manual POST request to the webhook URL using a tool like Postman or cURL to verify it's operational. 4. **Ensure Correct Response Format**: In the event of an error, it's recommended to send a 200 status code and include the error message within the result property, according to [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1327481613004701779). 5. **Check `endCallFunctionEnabled`**: Set the
endCallFunctionEnabled
to true using the dashboard, as suggested in [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1313293840580612166). 6. **Review Documentation**: Check the webhook documentation at [Vapi's documentation](https://docs.vapi.ai/server-url/events#end-of-call-report) to ensure your implementation matches the expected format. Would you be able to share more details about your server implementation or any error messages you're seeing in your logs to help narrow down the specific issue? Sources: - [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1327481613004701779) - [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341417477631901769) - [Discord discussions](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1313293840580612166) - [Vapi's documentation](https://docs.vapi.ai/server-url/events#end-of-call-report)
s
Hey Dan OS, you have assigned some server messages to your assistant, and during the call, we send these server events to your webhook URL or server URL assigned to the assistant. Your server URL is either returning 4xx status code or error response which we add to the call logs. To not get them, you have to deselect the server messages from your assistant.