m
I got error on twilio logs <Stream url='wss://phone-call-websocket.aws-us-west-2-backend-production2.vapi.ai/f9428f99-105b-4592-af07-05bcd1ffb715/transport' statusCallback='https://api.aws-us-west-2-backend-production2.vapi.ai/twilio/stream?callId=f9428f99-105b-4592-af07-05bcd1ffb715' >
@Vapi Support Bot
v
Hi there! I see you're experiencing an error with your Twilio configuration. While you haven't specified the exact error message you're seeing in the logs, I can help explain how the TwiML code you shared works and common issues that might occur with this setup. Looking at your TwiML snippet, you're using the
<Connect>
element with a nested
<Stream>
element to establish a WebSocket connection between Twilio and Vapi. This is a common pattern for streaming audio between these services. The
<Stream>
element in your code has two important attributes: - The
url
attribute points to Vapi's WebSocket endpoint for transport - The
statusCallback
attribute specifies a URL that Twilio will call to report on the status of the audio stream Here are some common issues that might be causing errors with this setup: 1. **Transport Connection Issues**: According to [documentation I found](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336407849806462976), a common error is "Transport Never Connected" where Twilio is unable to establish a connection to the specified WebSocket URL. 2. **WebSocket Connection Order**: The
/transport
connection needs to be established before the
/listen
connection. As mentioned in [Vapi's documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341810370700120064), this is a common source of errors. 3. **Call Status Mismatches**: VAPI might expect a specific call status (e.g., "ringing"), but Twilio might change it prematurely (e.g., to "in-progress"), leading to errors with a 400 status code. 4. **Document Parse Failure**: If there are any syntax errors in your TwiML, you might see a "Document parse failure" (Error 12100). 5. **Webhook Configuration Issues**: Make sure your Twilio number is configured to send webhook requests to the correct URL of your application server.
Would you be able to share the specific error message you're seeing in your Twilio logs? That would help me provide more targeted troubleshooting advice. Sources: - [Common errors with Twilio Connect and Stream elements](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336407849806462976) - [Twilio Connect element with Stream element](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341810370700120064) - [Common errors with Twilio Stream statusCallback](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1342459464346767492) - [Twilio Stream statusCallback attribute](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336407849806462976)
I see you're encountering an error with your Twilio logs that involves the
<Stream>
element. To help troubleshoot this issue more effectively, could you please share: 1. What specific error message are you receiving in the Twilio logs? 2. At what point in the call flow does this error occur? 3. Are you able to establish the WebSocket connection at all, or does it fail immediately? 4. Have you checked if the transport connection is established before the listen connection? This information will help me provide more targeted troubleshooting steps for your Twilio and Vapi integration issue. Sources: - [Troubleshooting errors with the Twilio url attribute](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1329235631855108128) - [Understanding Twilio XML Response structure](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1341810370700120064) - [Common errors related to Twilio verb](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1336707026536894534)
v
I see you're encountering an internal server error with the Vapi API. Based on the logs you've shared, there are two key issues: 1. The first response indicates that the assistant ID might not be properly set on your phone number configuration 2. The second response shows a 500 internal server error from the Vapi backend This type of server-side error requires assistance from our technical team. I've escalated your issue to our support engineers who have access to the backend systems and can investigate what's happening. Someone from our team will reach out to you shortly to help resolve this issue. In the meantime, could you share any additional details about your setup, such as: - When did this error first start occurring? - Have you made any recent changes to your Twilio or Vapi configuration? This information will help our support team troubleshoot more effectively when they contact you. Thanks for your patience! 🙂
m
@Vapi Support Bot It's really hard to do business with Vapi honestly, if at any time our assistants stop working, it's really a problem.. yesterday at 4 p.m. it was working very well, and now all the calls after that stop working.
v
I completely understand your frustration. Having your assistants suddenly stop working is definitely a serious business problem that needs urgent attention. I've re-escalated your issue with higher priority to our engineering team, highlighting that this is causing significant business impact for you. The 500 internal server error you're seeing is definitely something that requires backend access to resolve. Our technical team will be reaching out to you very soon. The information you've shared about the timing (working yesterday at 4 p.m. and then stopping) is very helpful for them to investigate what might have changed in the system. In the meantime, if you have any other Twilio phone numbers configured with Vapi that are still working, or if you have any backup communication channels set up, it might be worth temporarily routing calls there until we get this resolved. Thank you for your patience during this difficult situation. We're treating this as a high-priority issue. 🙏
k
Thank you for reaching out to us. We've received your message and will get back to you as soon as possible.
Hi, checking if this is resolved/solved for you?
3 Views