SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

Debugging Your Application

Overview

Twilio provides several tools for investigating the interaction between your application and Twilio, including the Debugger, Alerts, and Request Inspector in the Twilio Console. These tools allow developers to quickly see how well their application is performing. 

 

Environment

legacy Twilio Console

 

What You Need To Know

Error Logs

The Error Logs contain a detailed log of activity within your application. This log can help you dive deeper and and understand what Twilio resources were impacted and by whom. A detailed log, such as the one exposed via Events can be useful in understanding the root cause of a problem. 

 

Alarms

Alarms are flagged on specific Twilio requests that generate an error or warning. Calls and Messages with alarms are highlighted in red, making them easy to spot in your Call Logs and SMS Logs. Clicking the timestamp of an alarmed call or message will give you a more details view of the alarm flagged.
 

Request Inspector

The Request Inspector lists all requests made between Twilio and your application for a call or SMS. To view the Request Inspector, just access your Call Logs or SMS Logs, and click a recent call or SMS timestamp. The Request Inspector details are found at the bottom of the details view. 

Notice: For SMS, Message Request Inspector details are only available for 7 days. If the message is older than 7 days, a notification will be displayed on your screen.

In addition, only the failed requests will be shown on Request Inspector. For success requests, the message "There were no HTTP Requests logged for this event." will be shown. 

The Request Inspector in Twilio is designed to display failed API requests made to Twilio, as well as failed webhook requests that Twilio makes (such as status callbacks or inbound messages). However, it does not display downstream carrier or delivery failures. This means that for errors like 30006 or 30003, which represent delivery failures at the carrier level rather than failed API requests, you will not see information in the Request Inspector. These errors occur after Twilio has successfully accepted and processed your API request, but the message could not be delivered by the downstream carrier.

Notice: For Calls, Call Request Inspector details are only available for 30 days. If the call is older than 30 days you will see that no HTTP Requests were logged for the event.

For Calls you can also use the Request Replay feature to replay a request and see a side-by-side difference between the saved request and the new request. The replayed request is identical to the original; Twilio will send all the same header and request information.

 

Have more questions? Submit a request
Powered by Zendesk