Question

I'm trying to get basic SMS responses working on my server. I have a route set up at http://feedingforward-staging.herokuapp.com/api/sms that correctly produces the following TwiML when you make a GET request in the browser:

<?xml version="1.0" encoding="UTF-8"?><Response><Sms>Hey Monkey. Thanks for the message!</Sms></Response>

I've configured my Twilio number to point to this URL, and when I send a text to that number, the server does get the request and processes it with code 200 (OK). However, Twilio does not use the TwiML to send a response text.

Any idea why?

Was it helpful?

Solution 2

Fixed it with the help of one of the awesome customer service reps at Twilio.

My application was returning headers to Twilio with the content-type set to 'application/json'. I changed it to 'application/xml' and it worked!

OTHER TIPS

On your Twilio Dashboard, visit Logs -> Notifcations here: https://www.twilio.com/user/account/log/notifications and see if there's any sort of message generated when you send a message.

Disclosure: Twilio employee here.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top