502 response to https://api.vapi.ai/twilio/inbound...
# support
b
I have an incoming POST request from twilio Call SID CAd3c3b44da316c35ab99266bfc1f598f9 where it is getting a 502 response from vapi. Are you able to see what happened here?
v
Hi there! I see you're experiencing a 502 error when Twilio tries to send a POST request to the Vapi inbound call endpoint. While I don't have access to the specific logs for your Call SID CAd3c3b44da316c35ab99266bfc1f598f9, I can definitely help you understand potential causes and troubleshooting steps for this issue. ### Common Causes of 502 Errors Between Vapi and Twilio Several things could be causing this 502 error: 1. Network Connection Failure - Twilio might be unable to establish a TCP connection or receive an HTTP response from Vapi within the timeout period. According to [past incidents](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334137548162728040), this is a common cause. 2. Database Outages - Previous 502 errors were traced to database outages (specifically Supabase). You can check the [Supabase status page](https://status.supabase.com/) to see if there are any ongoing issues. 3. Webhook Configuration Issues - The webhook URL in Twilio might not be correctly pointing to the Vapi endpoint. Make sure it's configured properly. 4. Transport Connection Issues - If Twilio fails to connect to Vapi, it can result in a 502 error. Some [logs have shown](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336707026536894534) calls waiting 300s but the transport never connecting. ### Troubleshooting Steps Here's what you can do to investigate: 1. Check Vapi Logs - Log in to the Vapi Dashboard and navigate to the Logs or Reporting section to check for errors related to your call. 2. Review Twilio Logs - Check the Twilio logs for the specific Call SID to understand what went wrong on Twilio's side. 3. Verify Webhook Configuration - Ensure that the webhook URL configured in Twilio for incoming calls is correctly pointing to the Vapi endpoint. Go to Twilio, then "manage numbers", find your number, and check if the webhook is pointing to Vapi's server.
4. Check Server URL - Ensure the server URL you've entered in the Vapi Dashboard is correct and accessible from outside your network. 5. Verify Phone Number Configuration - Make sure the phone number is added in Vapi. 6. Check for Concurrency Limits - Ensure you're not exceeding the concurrency limits set by your Add Ons Concurrency Lines. If you need more specific help with this Call SID, you may want to contact Vapi support with the Call SID for a more in-depth investigation of the logs. Is there anything specific from these troubleshooting steps you'd like me to elaborate on? Sources: - [Discord Thread about 502 errors](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334137548162728040) - [Discord Thread about Webhook Configuration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1343208312249913397) - [Discord Thread about Transport Connection Issues](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336707026536894534) - [Discord Thread about Accessing Vapi Logs](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1334280135683084328) - [Discord Thread about Concurrency Limits](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1333508496456417415)
k
The call was in progress when we received the call, that's why it got rejected.
logs
Couldn't Find Call. Likely Rejected Inbound Because Misconfigured Credentials.
b
This is a call out of many that are going to the same twilio phone number. It wouldn't be misconfigured credentials since other calls are going through on this same number.
Also how is the call in progress if this call from customer number is never in vapi call logs?
k
I understand your point of view behind raising this, and I appreciate your concern. But I have limited information. If you could share the Twilio call logs for these call IDs, I can try to take a look at what might be going wrong. With our current logs, this is why these calls are being rejected.
2 Views