Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Not Creating Valid TwiML #38

Open
mpoegel opened this issue May 9, 2015 · 0 comments
Open

Not Creating Valid TwiML #38

mpoegel opened this issue May 9, 2015 · 0 comments
Labels

Comments

@mpoegel
Copy link
Member

mpoegel commented May 9, 2015

I absolutely cannot figure out why Twilio is rejecting the TwiML I return after receiving a POST request:

 return {
  statusCode: code,
  headers: {
    'Content-Type': 'text/xml'
  },
  body: '<?xml version="1.0" encoding="UTF-8"?>' +
    '<Response>' +
      '<Sms>' + message + '</Sms>' +
    '</Response>'
};

The current workaround is to return as 'Content-Type': 'text/plain' and Twilio will automatically reply with a text with the content of the body. It works fine, but I would really like to figure out why the TwiML isn't working.

@mpoegel mpoegel added the bug label May 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant