SlideShare a Scribd company logo
a
BEST PRACTICES FOR DEBUGGING YOUR
TWILIO APPS
CARTER RABASA, PRODUCT MANAGER
ABOUT THE TALK
CARTER RABASA | @CRTR0
40 minutes
100-level
REST API + SDK + Webhooks
ABOUT ME
CARTER RABASA | @CRTR0
Product Manager, API Tools
carter@twilio.com
crtr0
crtr0
ABOUT THE API TOOLS TEAM
CARTER RABASA | @CRTR0
PROTOTYPE TEST PROD MONITORBUILD DEBUG
API EXPLORER TWIML BINS DEBUGGER
REQ INSP
INSPECTOR
TRIGGERS
Overview Twilio’s Platform Architecture
Common REST API Issues
Common SDK Issues
Common Webhook Issues
CARTER RABASA | @CRTR0
AGENDA
CARTER RABASA | @CRTR0
OVERVIEW OF TWILIO’S ARCHITECTURE
TELECOM
SDK
HANDSET
SERVER
SIP/SMPP
HTTP
WEB SOCKET
WEB RTC
VOICE &
SMS INTER
CARTER RABASA | @CRTR0
THE INTERNET
DNS
NETWORK
CACHING
PROXIES
TIMEOUTS
URLS
SECURITY
SUPPORT
CARTER RABASA | @CRTR0
DEBUGGING
Software is easy to debug if you treat it like anything else.
If you have what you think is a bad light bulb, but when you
put a new bulb in the socket it doesn’t work, you’d
conclude the problem was in the socket, not the bulb.”
DEBUGGING CAN BE EASY“
- Dave Winer
COMMON REST
CARTER RABASA | @CRTR0
FLOW OF REST API REQUESTS
INTERNET
SERVER
M
AKES
HTTP
REQ
UEST
TO
SEND
AN
SM
S
TW
ILIO
AUTHENTICATES
THE
REQ
UEST
TW
ILIO
VALIDATES
THE
PARAM
ETERS
PASSED
TW
ILIO
PASSES
M
ESSAGE
TO
SM
S
CARRIER
CARRIER
DELIVERS
SM
S
TO
END
USER’S
HANDSET
CARTER RABASA | @CRTR0
BREAKDOWN OF REST API ERRORS
4xx
43%
401
57%
5/1/2016 - 5/15/2016
3B REST API CALLS
CARTER RABASA | @CRTR0
LETS DIVE IN
Code: Send an SMS
Check Out the API Explorer
COMMON CLIENT
CARTER RABASA | @CRTR0
FLOW OF SDK REQUESTS
CLIENT
ASKS
SERVER
FO
R
A
IP
M
ESSAGING
TO
KEN
CLIENT
INITIALIZES
IP
M
ESSAGING
SDK
W
ITH
TO
KEN
INTERNET
CLIENT
INVO
KES
IP
M
ESSAGING
SDK
M
ETHO
D
TW
ILIO
EVALUATES
JW
T
TO
KEN
TW
ILIO
EXECUTES
IP
M
ESSAGE
M
ETHO
D
CARTER RABASA | @CRTR0
LETS DIVE IN
Code: Twilio IP Chat
COMMON
WEBHOOK ISSUES
CARTER RABASA | @CRTR0
FLOW OF A WEBHOOK REQUEST
INTERNET
PHO
NE
CALLIS
M
AKE
TO
A
TW
ILIO
NUM
BER
CARRIER
PASSES
THE
PHO
NE
CALLTO
TW
ILIOTW
ILIO
LO
O
KS
UP
THE
VO
ICE
W
EBHO
O
K
URL
SERVER
RESPO
NDS
W
ITH
TW
IM
LINSTRUCTIO
NS
TW
ILIO
M
AKES
AN
HTTP
REQ
UEST
TO
THE
W
EBHO
O
K
URL
TW
ILIO
PARSES
AND
EXECUTES
THE
TW
IM
L
CARTER RABASA | @CRTR0
BREAKDOWN OF WEBHOOK ISSUES
other
16%
12300
6%
12200
14%
15003
17%
11200
48%
11200 - Webhook retrieval failure
15003 - Call Progress failure
12200 - Schema Validation Warning
12300 - Invalid Content Type
1/1/2016 - 5/15/2016
220M ERRORS
CARTER RABASA | @CRTR0
LETS DIVE IN
Code: Receive a Phone Call
Check out: Debugger & TwiML Bins
REST API
Catch errors and log them.
CARTER RABASA | @CRTR0
BEST PRACTICES FOR BUILDING
CLIENT SDK
Tokens! Log even more.
WEBHOOKS
Use helper libs and respond as quickly as possible.
Unit test and load test.
Set fallback handlers, consider TwiML Bins if possible.
BREAK THE PROBLEM DOWN
Mock out different components until you isolate the problem.
CARTER RABASA | @CRTR0
BEST PRACTICES FOR DEBUGGING
CHECK FOR INTERNET/NETWORK ISSUES
Check your proxies and HTTP logs.
CHECK STATUS PAGE, DEBUGGER AND LOGS
Check status.twilio.com
Check the Debugger
Check Voice and SMS logs
CARTER RABASA | @CRTR0
TOOLS TO USE WHEN DEBUGGING
CARTER RABASA | @CRTR0
TOOLS TO USE WHEN DEBUGGING
CARTER RABASA | @CRTR0
TOOLS TO USE WHEN DEBUGGING
CARTER RABASA | @CRTR0
TOOLS TO USE WHEN DEBUGGING
CARTER RABASA | @CRTR0
CARTER RABASA CARTER@TWILIO.
CRTR0
CRTR0

More Related Content

What's hot (20)

Twilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + TwilioTwilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Inc
 
What Can You Do With Twilio
What Can You Do With TwilioWhat Can You Do With Twilio
What Can You Do With Twilio
Twilio Inc
 
Twilio Product Overview
Twilio Product OverviewTwilio Product Overview
Twilio Product Overview
Twilio Inc
 
TWILIO SMS Introduction
TWILIO SMS IntroductionTWILIO SMS Introduction
TWILIO SMS Introduction
Naincy Gupta
 
Twilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact CenterTwilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact Center
Twilio Inc
 
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More FeaturesSmarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
Twilio Inc
 
Twilio Signal 2016 Using Add-ons
Twilio Signal 2016 Using Add-onsTwilio Signal 2016 Using Add-ons
Twilio Signal 2016 Using Add-ons
Twilio Inc
 
Twiliobot at Google Wave Meetup 2009-09-14
Twiliobot at Google Wave Meetup 2009-09-14Twiliobot at Google Wave Meetup 2009-09-14
Twiliobot at Google Wave Meetup 2009-09-14
Twilio Inc
 
Open Source Software Business Model
Open Source Software Business Model Open Source Software Business Model
Open Source Software Business Model
Twilio Inc
 
Twilio using Groovy Grails
Twilio using Groovy GrailsTwilio using Groovy Grails
Twilio using Groovy Grails
Ali Tanwir
 
Twilio Signal 2016 Taking Your SMS App Global
Twilio Signal 2016 Taking Your SMS App GlobalTwilio Signal 2016 Taking Your SMS App Global
Twilio Signal 2016 Taking Your SMS App Global
Twilio Inc
 
Twilio API: Build SMS Text Message Into Web Apps
Twilio API: Build SMS Text Message Into Web AppsTwilio API: Build SMS Text Message Into Web Apps
Twilio API: Build SMS Text Message Into Web Apps
Mindfire Solutions
 
Final Twilio Under the Radar 2009 Cloud
Final Twilio Under the Radar 2009 CloudFinal Twilio Under the Radar 2009 Cloud
Final Twilio Under the Radar 2009 Cloud
Dealmaker Media
 
KazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIsKazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIs
2600Hz
 
Programmable Video Fundamentals
Programmable Video FundamentalsProgrammable Video Fundamentals
Programmable Video Fundamentals
Mark Roberts
 
Twilio
TwilioTwilio
Twilio
NexThoughts Technologies
 
Building a Great Web API - Evan Cooke - QCON 2011
Building a Great Web API - Evan Cooke - QCON 2011Building a Great Web API - Evan Cooke - QCON 2011
Building a Great Web API - Evan Cooke - QCON 2011
Twilio Inc
 
Identity, Authentication, and Programmable Telecoms
Identity, Authentication, and Programmable TelecomsIdentity, Authentication, and Programmable Telecoms
Identity, Authentication, and Programmable Telecoms
Alan Quayle
 
Twilio Presentation
Twilio PresentationTwilio Presentation
Twilio Presentation
Chelsea Pugh
 
Lead Gen in the Post-PC World - LeadsCon 2012
Lead Gen in the Post-PC World - LeadsCon 2012Lead Gen in the Post-PC World - LeadsCon 2012
Lead Gen in the Post-PC World - LeadsCon 2012
Twilio Inc
 
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + TwilioTwilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Signal 2016 Robots-IoT-Watson-Cognitive + Twilio
Twilio Inc
 
What Can You Do With Twilio
What Can You Do With TwilioWhat Can You Do With Twilio
What Can You Do With Twilio
Twilio Inc
 
Twilio Product Overview
Twilio Product OverviewTwilio Product Overview
Twilio Product Overview
Twilio Inc
 
TWILIO SMS Introduction
TWILIO SMS IntroductionTWILIO SMS Introduction
TWILIO SMS Introduction
Naincy Gupta
 
Twilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact CenterTwilio Signal 2016 Serverless Contact Center
Twilio Signal 2016 Serverless Contact Center
Twilio Inc
 
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More FeaturesSmarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
Smarter SIP Trunks: 6 Ways You Can Save Time and Get More Features
Twilio Inc
 
Twilio Signal 2016 Using Add-ons
Twilio Signal 2016 Using Add-onsTwilio Signal 2016 Using Add-ons
Twilio Signal 2016 Using Add-ons
Twilio Inc
 
Twiliobot at Google Wave Meetup 2009-09-14
Twiliobot at Google Wave Meetup 2009-09-14Twiliobot at Google Wave Meetup 2009-09-14
Twiliobot at Google Wave Meetup 2009-09-14
Twilio Inc
 
Open Source Software Business Model
Open Source Software Business Model Open Source Software Business Model
Open Source Software Business Model
Twilio Inc
 
Twilio using Groovy Grails
Twilio using Groovy GrailsTwilio using Groovy Grails
Twilio using Groovy Grails
Ali Tanwir
 
Twilio Signal 2016 Taking Your SMS App Global
Twilio Signal 2016 Taking Your SMS App GlobalTwilio Signal 2016 Taking Your SMS App Global
Twilio Signal 2016 Taking Your SMS App Global
Twilio Inc
 
Twilio API: Build SMS Text Message Into Web Apps
Twilio API: Build SMS Text Message Into Web AppsTwilio API: Build SMS Text Message Into Web Apps
Twilio API: Build SMS Text Message Into Web Apps
Mindfire Solutions
 
Final Twilio Under the Radar 2009 Cloud
Final Twilio Under the Radar 2009 CloudFinal Twilio Under the Radar 2009 Cloud
Final Twilio Under the Radar 2009 Cloud
Dealmaker Media
 
KazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIsKazooCon 2014 - Control Cellular Service via APIs
KazooCon 2014 - Control Cellular Service via APIs
2600Hz
 
Programmable Video Fundamentals
Programmable Video FundamentalsProgrammable Video Fundamentals
Programmable Video Fundamentals
Mark Roberts
 
Building a Great Web API - Evan Cooke - QCON 2011
Building a Great Web API - Evan Cooke - QCON 2011Building a Great Web API - Evan Cooke - QCON 2011
Building a Great Web API - Evan Cooke - QCON 2011
Twilio Inc
 
Identity, Authentication, and Programmable Telecoms
Identity, Authentication, and Programmable TelecomsIdentity, Authentication, and Programmable Telecoms
Identity, Authentication, and Programmable Telecoms
Alan Quayle
 
Twilio Presentation
Twilio PresentationTwilio Presentation
Twilio Presentation
Chelsea Pugh
 
Lead Gen in the Post-PC World - LeadsCon 2012
Lead Gen in the Post-PC World - LeadsCon 2012Lead Gen in the Post-PC World - LeadsCon 2012
Lead Gen in the Post-PC World - LeadsCon 2012
Twilio Inc
 

Similar to Twilio Signal 2016 Best Practices for Debugging Twilio Apps (20)

Kamailio World 2014 - Kamailio - The Platform for Interoperable WebRTC
Kamailio World 2014 - Kamailio - The Platform for Interoperable WebRTCKamailio World 2014 - Kamailio - The Platform for Interoperable WebRTC
Kamailio World 2014 - Kamailio - The Platform for Interoperable WebRTC
Crocodile WebRTC SDK and Cloud Signalling Network
 
Stranger Things: The Forces that Disrupt Netflix
Stranger Things: The Forces that Disrupt NetflixStranger Things: The Forces that Disrupt Netflix
Stranger Things: The Forces that Disrupt Netflix
C4Media
 
Hacking websockets
Hacking websocketsHacking websockets
Hacking websockets
Tomek Cejner
 
Smart networking with service meshes
Smart networking with service meshes  Smart networking with service meshes
Smart networking with service meshes
Mitchell Pronschinske
 
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and ConfluentEvent Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
confluent
 
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Kai Wähner
 
Introduction to RPKI
Introduction to RPKIIntroduction to RPKI
Introduction to RPKI
APNIC
 
AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...
AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...
AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...
Filip Pýrek
 
5 ip security urpf
5 ip security urpf5 ip security urpf
5 ip security urpf
SagarR24
 
Cloud computing for libraries an introduction
Cloud computing for libraries an introductionCloud computing for libraries an introduction
Cloud computing for libraries an introduction
Krista Godfrey
 
elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...
elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...
elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...
Luis Lopez
 
5 ip security asa-partb
5 ip security asa-partb5 ip security asa-partb
5 ip security asa-partb
SagarR24
 
Asterisk World (January 2014) - Taking Enterprise Telephony into the Web World
Asterisk World (January 2014) - Taking Enterprise Telephony into the Web WorldAsterisk World (January 2014) - Taking Enterprise Telephony into the Web World
Asterisk World (January 2014) - Taking Enterprise Telephony into the Web World
Crocodile WebRTC SDK and Cloud Signalling Network
 
FIWARE Global Summit - Connecting to LoRa networks: Practical Demo
FIWARE Global Summit - Connecting to LoRa networks: Practical DemoFIWARE Global Summit - Connecting to LoRa networks: Practical Demo
FIWARE Global Summit - Connecting to LoRa networks: Practical Demo
FIWARE
 
WebRTC Videobroadcasting
WebRTC VideobroadcastingWebRTC Videobroadcasting
WebRTC Videobroadcasting
Ravi Kuril
 
apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...
apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...
apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...
apidays
 
Access Management with Aruba ClearPass
Access Management with Aruba ClearPassAccess Management with Aruba ClearPass
Access Management with Aruba ClearPass
Aruba, a Hewlett Packard Enterprise company
 
Experiences from incorporating sign language in customer interactions
Experiences from incorporating sign language in customer interactionsExperiences from incorporating sign language in customer interactions
Experiences from incorporating sign language in customer interactions
Alberto González Trastoy
 
Experiences from Incorporating Sign Language in Customer Interactions
Experiences from Incorporating Sign Language in Customer InteractionsExperiences from Incorporating Sign Language in Customer Interactions
Experiences from Incorporating Sign Language in Customer Interactions
Alan Quayle
 
5 ip security copp-mpp
5 ip security copp-mpp5 ip security copp-mpp
5 ip security copp-mpp
SagarR24
 
Stranger Things: The Forces that Disrupt Netflix
Stranger Things: The Forces that Disrupt NetflixStranger Things: The Forces that Disrupt Netflix
Stranger Things: The Forces that Disrupt Netflix
C4Media
 
Hacking websockets
Hacking websocketsHacking websockets
Hacking websockets
Tomek Cejner
 
Smart networking with service meshes
Smart networking with service meshes  Smart networking with service meshes
Smart networking with service meshes
Mitchell Pronschinske
 
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and ConfluentEvent Streaming in the Telco Industry with Apache Kafka® and Confluent
Event Streaming in the Telco Industry with Apache Kafka® and Confluent
confluent
 
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Apache Kafka in the Telco Industry (OSS, BSS, OTT, IMS, NFV, Middleware, Main...
Kai Wähner
 
Introduction to RPKI
Introduction to RPKIIntroduction to RPKI
Introduction to RPKI
APNIC
 
AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...
AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...
AWS Cloud Day Prague 2023 - Serverless tRPC - API protocol for modern TypeScr...
Filip Pýrek
 
5 ip security urpf
5 ip security urpf5 ip security urpf
5 ip security urpf
SagarR24
 
Cloud computing for libraries an introduction
Cloud computing for libraries an introductionCloud computing for libraries an introduction
Cloud computing for libraries an introduction
Krista Godfrey
 
elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...
elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...
elasticRTC -- how to have your own WebRTC cloud scaling to be billions in min...
Luis Lopez
 
5 ip security asa-partb
5 ip security asa-partb5 ip security asa-partb
5 ip security asa-partb
SagarR24
 
FIWARE Global Summit - Connecting to LoRa networks: Practical Demo
FIWARE Global Summit - Connecting to LoRa networks: Practical DemoFIWARE Global Summit - Connecting to LoRa networks: Practical Demo
FIWARE Global Summit - Connecting to LoRa networks: Practical Demo
FIWARE
 
WebRTC Videobroadcasting
WebRTC VideobroadcastingWebRTC Videobroadcasting
WebRTC Videobroadcasting
Ravi Kuril
 
apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...
apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...
apidays LIVE LONDON - The Service Management Ecosystem: unification of techno...
apidays
 
Experiences from incorporating sign language in customer interactions
Experiences from incorporating sign language in customer interactionsExperiences from incorporating sign language in customer interactions
Experiences from incorporating sign language in customer interactions
Alberto González Trastoy
 
Experiences from Incorporating Sign Language in Customer Interactions
Experiences from Incorporating Sign Language in Customer InteractionsExperiences from Incorporating Sign Language in Customer Interactions
Experiences from Incorporating Sign Language in Customer Interactions
Alan Quayle
 
5 ip security copp-mpp
5 ip security copp-mpp5 ip security copp-mpp
5 ip security copp-mpp
SagarR24
 

More from Twilio Inc (20)

Salesforce’s Andy Kung on the Power of CRM Integrations
 Salesforce’s Andy Kung on the Power of CRM Integrations Salesforce’s Andy Kung on the Power of CRM Integrations
Salesforce’s Andy Kung on the Power of CRM Integrations
Twilio Inc
 
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call CenterAll Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
Twilio Inc
 
Why Mobile Messaging Works?
Why Mobile Messaging Works?Why Mobile Messaging Works?
Why Mobile Messaging Works?
Twilio Inc
 
Understand How Consumers Use Messaging
Understand How Consumers Use MessagingUnderstand How Consumers Use Messaging
Understand How Consumers Use Messaging
Twilio Inc
 
How To Track Calls Using Twilio?
How To Track Calls Using Twilio?How To Track Calls Using Twilio?
How To Track Calls Using Twilio?
Twilio Inc
 
Twilio Signal 2016 WebRTC Reborn
Twilio Signal 2016 WebRTC RebornTwilio Signal 2016 WebRTC Reborn
Twilio Signal 2016 WebRTC Reborn
Twilio Inc
 
Twilio Signal 2016 Technical Blogging
Twilio Signal 2016 Technical Blogging Twilio Signal 2016 Technical Blogging
Twilio Signal 2016 Technical Blogging
Twilio Inc
 
Twilio Signal 2016 Leading An Open Hardware Revolution
Twilio Signal 2016 Leading An Open Hardware RevolutionTwilio Signal 2016 Leading An Open Hardware Revolution
Twilio Signal 2016 Leading An Open Hardware Revolution
Twilio Inc
 
Twilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Signal 2016 IoT Using LittleBits and Twilio SMSTwilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Inc
 
Twilio Signal 2016 Chaos Patterns
Twilio Signal 2016 Chaos PatternsTwilio Signal 2016 Chaos Patterns
Twilio Signal 2016 Chaos Patterns
Twilio Inc
 
Twilio Signal 2016 How to Impact Non-profits
Twilio Signal 2016 How to Impact Non-profits Twilio Signal 2016 How to Impact Non-profits
Twilio Signal 2016 How to Impact Non-profits
Twilio Inc
 
Twilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Signal 2016 Bringing P2P to the Masses with WebRTCTwilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Inc
 
Twilio Signal 2016 Listing Services and Lead Generation
Twilio Signal 2016 Listing Services and Lead GenerationTwilio Signal 2016 Listing Services and Lead Generation
Twilio Signal 2016 Listing Services and Lead Generation
Twilio Inc
 
Twilio Signal 2016 Bots
Twilio Signal 2016 BotsTwilio Signal 2016 Bots
Twilio Signal 2016 Bots
Twilio Inc
 
Twilio Signal 2016 Omni-channel Routing Bots
Twilio Signal 2016 Omni-channel Routing BotsTwilio Signal 2016 Omni-channel Routing Bots
Twilio Signal 2016 Omni-channel Routing Bots
Twilio Inc
 
Twilio Signal 2016 New Documentation
Twilio Signal 2016 New DocumentationTwilio Signal 2016 New Documentation
Twilio Signal 2016 New Documentation
Twilio Inc
 
Twilio Signal 2016 How to Build Next Generation Speech Analytics
Twilio Signal 2016 How to Build Next Generation Speech AnalyticsTwilio Signal 2016 How to Build Next Generation Speech Analytics
Twilio Signal 2016 How to Build Next Generation Speech Analytics
Twilio Inc
 
Twilio Signal 2016 Designing Multi-party Call Flows
Twilio Signal 2016 Designing Multi-party Call FlowsTwilio Signal 2016 Designing Multi-party Call Flows
Twilio Signal 2016 Designing Multi-party Call Flows
Twilio Inc
 
Twilio Signal 2016 Career Development for Developers
Twilio Signal 2016 Career Development for DevelopersTwilio Signal 2016 Career Development for Developers
Twilio Signal 2016 Career Development for Developers
Twilio Inc
 
Twilio Signal 2016 Building Cognitive Bots
Twilio Signal 2016 Building Cognitive BotsTwilio Signal 2016 Building Cognitive Bots
Twilio Signal 2016 Building Cognitive Bots
Twilio Inc
 
Salesforce’s Andy Kung on the Power of CRM Integrations
 Salesforce’s Andy Kung on the Power of CRM Integrations Salesforce’s Andy Kung on the Power of CRM Integrations
Salesforce’s Andy Kung on the Power of CRM Integrations
Twilio Inc
 
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call CenterAll Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
All Web Leads’ Lorena Lauv on How to Scale a Virtual Call Center
Twilio Inc
 
Why Mobile Messaging Works?
Why Mobile Messaging Works?Why Mobile Messaging Works?
Why Mobile Messaging Works?
Twilio Inc
 
Understand How Consumers Use Messaging
Understand How Consumers Use MessagingUnderstand How Consumers Use Messaging
Understand How Consumers Use Messaging
Twilio Inc
 
How To Track Calls Using Twilio?
How To Track Calls Using Twilio?How To Track Calls Using Twilio?
How To Track Calls Using Twilio?
Twilio Inc
 
Twilio Signal 2016 WebRTC Reborn
Twilio Signal 2016 WebRTC RebornTwilio Signal 2016 WebRTC Reborn
Twilio Signal 2016 WebRTC Reborn
Twilio Inc
 
Twilio Signal 2016 Technical Blogging
Twilio Signal 2016 Technical Blogging Twilio Signal 2016 Technical Blogging
Twilio Signal 2016 Technical Blogging
Twilio Inc
 
Twilio Signal 2016 Leading An Open Hardware Revolution
Twilio Signal 2016 Leading An Open Hardware RevolutionTwilio Signal 2016 Leading An Open Hardware Revolution
Twilio Signal 2016 Leading An Open Hardware Revolution
Twilio Inc
 
Twilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Signal 2016 IoT Using LittleBits and Twilio SMSTwilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Signal 2016 IoT Using LittleBits and Twilio SMS
Twilio Inc
 
Twilio Signal 2016 Chaos Patterns
Twilio Signal 2016 Chaos PatternsTwilio Signal 2016 Chaos Patterns
Twilio Signal 2016 Chaos Patterns
Twilio Inc
 
Twilio Signal 2016 How to Impact Non-profits
Twilio Signal 2016 How to Impact Non-profits Twilio Signal 2016 How to Impact Non-profits
Twilio Signal 2016 How to Impact Non-profits
Twilio Inc
 
Twilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Signal 2016 Bringing P2P to the Masses with WebRTCTwilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Signal 2016 Bringing P2P to the Masses with WebRTC
Twilio Inc
 
Twilio Signal 2016 Listing Services and Lead Generation
Twilio Signal 2016 Listing Services and Lead GenerationTwilio Signal 2016 Listing Services and Lead Generation
Twilio Signal 2016 Listing Services and Lead Generation
Twilio Inc
 
Twilio Signal 2016 Bots
Twilio Signal 2016 BotsTwilio Signal 2016 Bots
Twilio Signal 2016 Bots
Twilio Inc
 
Twilio Signal 2016 Omni-channel Routing Bots
Twilio Signal 2016 Omni-channel Routing BotsTwilio Signal 2016 Omni-channel Routing Bots
Twilio Signal 2016 Omni-channel Routing Bots
Twilio Inc
 
Twilio Signal 2016 New Documentation
Twilio Signal 2016 New DocumentationTwilio Signal 2016 New Documentation
Twilio Signal 2016 New Documentation
Twilio Inc
 
Twilio Signal 2016 How to Build Next Generation Speech Analytics
Twilio Signal 2016 How to Build Next Generation Speech AnalyticsTwilio Signal 2016 How to Build Next Generation Speech Analytics
Twilio Signal 2016 How to Build Next Generation Speech Analytics
Twilio Inc
 
Twilio Signal 2016 Designing Multi-party Call Flows
Twilio Signal 2016 Designing Multi-party Call FlowsTwilio Signal 2016 Designing Multi-party Call Flows
Twilio Signal 2016 Designing Multi-party Call Flows
Twilio Inc
 
Twilio Signal 2016 Career Development for Developers
Twilio Signal 2016 Career Development for DevelopersTwilio Signal 2016 Career Development for Developers
Twilio Signal 2016 Career Development for Developers
Twilio Inc
 
Twilio Signal 2016 Building Cognitive Bots
Twilio Signal 2016 Building Cognitive BotsTwilio Signal 2016 Building Cognitive Bots
Twilio Signal 2016 Building Cognitive Bots
Twilio Inc
 

Recently uploaded (20)

How to Create a Crypto Wallet Like Trust.pptx
How to Create a Crypto Wallet Like Trust.pptxHow to Create a Crypto Wallet Like Trust.pptx
How to Create a Crypto Wallet Like Trust.pptx
riyageorge2024
 
cram_advancedword2007version2025final.ppt
cram_advancedword2007version2025final.pptcram_advancedword2007version2025final.ppt
cram_advancedword2007version2025final.ppt
ahmedsaadtax2025
 
wAIred_LearnWithOutAI_JCON_14052025.pptx
wAIred_LearnWithOutAI_JCON_14052025.pptxwAIred_LearnWithOutAI_JCON_14052025.pptx
wAIred_LearnWithOutAI_JCON_14052025.pptx
SimonedeGijt
 
Multi-Agent Era will Define the Future of Software
Multi-Agent Era will Define the Future of SoftwareMulti-Agent Era will Define the Future of Software
Multi-Agent Era will Define the Future of Software
Ivo Andreev
 
Do not let staffing shortages and limited fiscal view hamper your cause
Do not let staffing shortages and limited fiscal view hamper your causeDo not let staffing shortages and limited fiscal view hamper your cause
Do not let staffing shortages and limited fiscal view hamper your cause
Fexle Services Pvt. Ltd.
 
Memory Management and Leaks in Postgres from pgext.day 2025
Memory Management and Leaks in Postgres from pgext.day 2025Memory Management and Leaks in Postgres from pgext.day 2025
Memory Management and Leaks in Postgres from pgext.day 2025
Phil Eaton
 
A Comprehensive Guide to CRM Software Benefits for Every Business Stage
A Comprehensive Guide to CRM Software Benefits for Every Business StageA Comprehensive Guide to CRM Software Benefits for Every Business Stage
A Comprehensive Guide to CRM Software Benefits for Every Business Stage
SynapseIndia
 
File Viewer Plus 7.5.5.49 Crack Full Version
File Viewer Plus 7.5.5.49 Crack Full VersionFile Viewer Plus 7.5.5.49 Crack Full Version
File Viewer Plus 7.5.5.49 Crack Full Version
raheemk1122g
 
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studiesTroubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Tier1 app
 
Hyper Casual Game Developers Company
Hyper  Casual  Game  Developers  CompanyHyper  Casual  Game  Developers  Company
Hyper Casual Game Developers Company
Nova Carter
 
Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...
Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...
Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...
jamesmartin143256
 
Call of Duty: Warzone for Windows With Crack Free Download 2025
Call of Duty: Warzone for Windows With Crack Free Download 2025Call of Duty: Warzone for Windows With Crack Free Download 2025
Call of Duty: Warzone for Windows With Crack Free Download 2025
Iobit Uninstaller Pro Crack
 
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb ClarkDeploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Peter Caitens
 
Lumion Pro Crack + 2025 Activation Key Free Code
Lumion Pro Crack + 2025 Activation Key Free CodeLumion Pro Crack + 2025 Activation Key Free Code
Lumion Pro Crack + 2025 Activation Key Free Code
raheemk1122g
 
Applying AI in Marketo: Practical Strategies and Implementation
Applying AI in Marketo: Practical Strategies and ImplementationApplying AI in Marketo: Practical Strategies and Implementation
Applying AI in Marketo: Practical Strategies and Implementation
BradBedford3
 
How to Install and Activate ListGrabber Plugin
How to Install and Activate ListGrabber PluginHow to Install and Activate ListGrabber Plugin
How to Install and Activate ListGrabber Plugin
eGrabber
 
AI Agents with Gemini 2.0 - Beyond the Chatbot
AI Agents with Gemini 2.0 - Beyond the ChatbotAI Agents with Gemini 2.0 - Beyond the Chatbot
AI Agents with Gemini 2.0 - Beyond the Chatbot
Márton Kodok
 
Best HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRMBest HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRM
accordHRM
 
Exchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv SoftwareExchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv Software
Shoviv Software
 
Passkeys and cbSecurity Led by Eric Peterson.pdf
Passkeys and cbSecurity Led by Eric Peterson.pdfPasskeys and cbSecurity Led by Eric Peterson.pdf
Passkeys and cbSecurity Led by Eric Peterson.pdf
Ortus Solutions, Corp
 
How to Create a Crypto Wallet Like Trust.pptx
How to Create a Crypto Wallet Like Trust.pptxHow to Create a Crypto Wallet Like Trust.pptx
How to Create a Crypto Wallet Like Trust.pptx
riyageorge2024
 
cram_advancedword2007version2025final.ppt
cram_advancedword2007version2025final.pptcram_advancedword2007version2025final.ppt
cram_advancedword2007version2025final.ppt
ahmedsaadtax2025
 
wAIred_LearnWithOutAI_JCON_14052025.pptx
wAIred_LearnWithOutAI_JCON_14052025.pptxwAIred_LearnWithOutAI_JCON_14052025.pptx
wAIred_LearnWithOutAI_JCON_14052025.pptx
SimonedeGijt
 
Multi-Agent Era will Define the Future of Software
Multi-Agent Era will Define the Future of SoftwareMulti-Agent Era will Define the Future of Software
Multi-Agent Era will Define the Future of Software
Ivo Andreev
 
Do not let staffing shortages and limited fiscal view hamper your cause
Do not let staffing shortages and limited fiscal view hamper your causeDo not let staffing shortages and limited fiscal view hamper your cause
Do not let staffing shortages and limited fiscal view hamper your cause
Fexle Services Pvt. Ltd.
 
Memory Management and Leaks in Postgres from pgext.day 2025
Memory Management and Leaks in Postgres from pgext.day 2025Memory Management and Leaks in Postgres from pgext.day 2025
Memory Management and Leaks in Postgres from pgext.day 2025
Phil Eaton
 
A Comprehensive Guide to CRM Software Benefits for Every Business Stage
A Comprehensive Guide to CRM Software Benefits for Every Business StageA Comprehensive Guide to CRM Software Benefits for Every Business Stage
A Comprehensive Guide to CRM Software Benefits for Every Business Stage
SynapseIndia
 
File Viewer Plus 7.5.5.49 Crack Full Version
File Viewer Plus 7.5.5.49 Crack Full VersionFile Viewer Plus 7.5.5.49 Crack Full Version
File Viewer Plus 7.5.5.49 Crack Full Version
raheemk1122g
 
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studiesTroubleshooting JVM Outages – 3 Fortune 500 case studies
Troubleshooting JVM Outages – 3 Fortune 500 case studies
Tier1 app
 
Hyper Casual Game Developers Company
Hyper  Casual  Game  Developers  CompanyHyper  Casual  Game  Developers  Company
Hyper Casual Game Developers Company
Nova Carter
 
Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...
Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...
Bridging Sales & Marketing Gaps with IInfotanks’ Salesforce Account Engagemen...
jamesmartin143256
 
Call of Duty: Warzone for Windows With Crack Free Download 2025
Call of Duty: Warzone for Windows With Crack Free Download 2025Call of Duty: Warzone for Windows With Crack Free Download 2025
Call of Duty: Warzone for Windows With Crack Free Download 2025
Iobit Uninstaller Pro Crack
 
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb ClarkDeploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Deploying & Testing Agentforce - End-to-end with Copado - Ewenb Clark
Peter Caitens
 
Lumion Pro Crack + 2025 Activation Key Free Code
Lumion Pro Crack + 2025 Activation Key Free CodeLumion Pro Crack + 2025 Activation Key Free Code
Lumion Pro Crack + 2025 Activation Key Free Code
raheemk1122g
 
Applying AI in Marketo: Practical Strategies and Implementation
Applying AI in Marketo: Practical Strategies and ImplementationApplying AI in Marketo: Practical Strategies and Implementation
Applying AI in Marketo: Practical Strategies and Implementation
BradBedford3
 
How to Install and Activate ListGrabber Plugin
How to Install and Activate ListGrabber PluginHow to Install and Activate ListGrabber Plugin
How to Install and Activate ListGrabber Plugin
eGrabber
 
AI Agents with Gemini 2.0 - Beyond the Chatbot
AI Agents with Gemini 2.0 - Beyond the ChatbotAI Agents with Gemini 2.0 - Beyond the Chatbot
AI Agents with Gemini 2.0 - Beyond the Chatbot
Márton Kodok
 
Best HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRMBest HR and Payroll Software in Bangladesh - accordHRM
Best HR and Payroll Software in Bangladesh - accordHRM
accordHRM
 
Exchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv SoftwareExchange Migration Tool- Shoviv Software
Exchange Migration Tool- Shoviv Software
Shoviv Software
 
Passkeys and cbSecurity Led by Eric Peterson.pdf
Passkeys and cbSecurity Led by Eric Peterson.pdfPasskeys and cbSecurity Led by Eric Peterson.pdf
Passkeys and cbSecurity Led by Eric Peterson.pdf
Ortus Solutions, Corp
 

Twilio Signal 2016 Best Practices for Debugging Twilio Apps

  • 1. a BEST PRACTICES FOR DEBUGGING YOUR TWILIO APPS CARTER RABASA, PRODUCT MANAGER
  • 2. ABOUT THE TALK CARTER RABASA | @CRTR0 40 minutes 100-level REST API + SDK + Webhooks
  • 3. ABOUT ME CARTER RABASA | @CRTR0 Product Manager, API Tools carter@twilio.com crtr0 crtr0
  • 4. ABOUT THE API TOOLS TEAM CARTER RABASA | @CRTR0 PROTOTYPE TEST PROD MONITORBUILD DEBUG API EXPLORER TWIML BINS DEBUGGER REQ INSP INSPECTOR TRIGGERS
  • 5. Overview Twilio’s Platform Architecture Common REST API Issues Common SDK Issues Common Webhook Issues CARTER RABASA | @CRTR0 AGENDA
  • 6. CARTER RABASA | @CRTR0 OVERVIEW OF TWILIO’S ARCHITECTURE TELECOM SDK HANDSET SERVER SIP/SMPP HTTP WEB SOCKET WEB RTC VOICE & SMS INTER
  • 7. CARTER RABASA | @CRTR0 THE INTERNET DNS NETWORK CACHING PROXIES TIMEOUTS URLS SECURITY SUPPORT
  • 8. CARTER RABASA | @CRTR0 DEBUGGING Software is easy to debug if you treat it like anything else. If you have what you think is a bad light bulb, but when you put a new bulb in the socket it doesn’t work, you’d conclude the problem was in the socket, not the bulb.” DEBUGGING CAN BE EASY“ - Dave Winer
  • 10. CARTER RABASA | @CRTR0 FLOW OF REST API REQUESTS INTERNET SERVER M AKES HTTP REQ UEST TO SEND AN SM S TW ILIO AUTHENTICATES THE REQ UEST TW ILIO VALIDATES THE PARAM ETERS PASSED TW ILIO PASSES M ESSAGE TO SM S CARRIER CARRIER DELIVERS SM S TO END USER’S HANDSET
  • 11. CARTER RABASA | @CRTR0 BREAKDOWN OF REST API ERRORS 4xx 43% 401 57% 5/1/2016 - 5/15/2016 3B REST API CALLS
  • 12. CARTER RABASA | @CRTR0 LETS DIVE IN Code: Send an SMS Check Out the API Explorer
  • 14. CARTER RABASA | @CRTR0 FLOW OF SDK REQUESTS CLIENT ASKS SERVER FO R A IP M ESSAGING TO KEN CLIENT INITIALIZES IP M ESSAGING SDK W ITH TO KEN INTERNET CLIENT INVO KES IP M ESSAGING SDK M ETHO D TW ILIO EVALUATES JW T TO KEN TW ILIO EXECUTES IP M ESSAGE M ETHO D
  • 15. CARTER RABASA | @CRTR0 LETS DIVE IN Code: Twilio IP Chat
  • 17. CARTER RABASA | @CRTR0 FLOW OF A WEBHOOK REQUEST INTERNET PHO NE CALLIS M AKE TO A TW ILIO NUM BER CARRIER PASSES THE PHO NE CALLTO TW ILIOTW ILIO LO O KS UP THE VO ICE W EBHO O K URL SERVER RESPO NDS W ITH TW IM LINSTRUCTIO NS TW ILIO M AKES AN HTTP REQ UEST TO THE W EBHO O K URL TW ILIO PARSES AND EXECUTES THE TW IM L
  • 18. CARTER RABASA | @CRTR0 BREAKDOWN OF WEBHOOK ISSUES other 16% 12300 6% 12200 14% 15003 17% 11200 48% 11200 - Webhook retrieval failure 15003 - Call Progress failure 12200 - Schema Validation Warning 12300 - Invalid Content Type 1/1/2016 - 5/15/2016 220M ERRORS
  • 19. CARTER RABASA | @CRTR0 LETS DIVE IN Code: Receive a Phone Call Check out: Debugger & TwiML Bins
  • 20. REST API Catch errors and log them. CARTER RABASA | @CRTR0 BEST PRACTICES FOR BUILDING CLIENT SDK Tokens! Log even more. WEBHOOKS Use helper libs and respond as quickly as possible. Unit test and load test. Set fallback handlers, consider TwiML Bins if possible.
  • 21. BREAK THE PROBLEM DOWN Mock out different components until you isolate the problem. CARTER RABASA | @CRTR0 BEST PRACTICES FOR DEBUGGING CHECK FOR INTERNET/NETWORK ISSUES Check your proxies and HTTP logs. CHECK STATUS PAGE, DEBUGGER AND LOGS Check status.twilio.com Check the Debugger Check Voice and SMS logs
  • 22. CARTER RABASA | @CRTR0 TOOLS TO USE WHEN DEBUGGING
  • 23. CARTER RABASA | @CRTR0 TOOLS TO USE WHEN DEBUGGING
  • 24. CARTER RABASA | @CRTR0 TOOLS TO USE WHEN DEBUGGING
  • 25. CARTER RABASA | @CRTR0 TOOLS TO USE WHEN DEBUGGING
  • 26. CARTER RABASA | @CRTR0 CARTER RABASA CARTER@TWILIO. CRTR0 CRTR0
  翻译: