If you encounter issues with message delivery, such as duplicate message delivery, the best way to begin debugging is by viewing your Programmable Messaging Logs.
To view your logs, log in to your Twilio Account and navigate to Monitor > Logs > Messaging in the left-side navigation menu.
The Messaging logs default view lists the 50 most recent messages you've sent, starting with the most recent. You can search by Message SID, From
and To
phone numbers, and filter by start and end times.
Each log line displays:
From
and
To
numbers.
Messages that received statuses other than 200
appear in yellow or red, depending on the status code.
To dig deeper into a given message, click on the hyperlinked date in the message's log line. This will take you to the Message Details page where you can find the Message SID as well as the message creation time, To
and From
numbers, Delivery Steps, any errors or warnings, and the Request Inspector.
The Delivery Steps section of this log will show you the message creation time, how long Twilio queued the message, and when Twilio sent it to the carrier for delivery. These factors can help you determine where an undelivered message failed, or investigate latency issues.
The Request Inspector shows all HTTP requests and responses made when sending or receiving the individual message.