Great question — answering as the UphillTech team:
You get this error Error - 11200 HTTP retrieval failure because Twilio expects a response as it makes the POST request to your /sms endpoint. The response needs to be a valid TwiML (XML). Change your code: // Handles incoming SMS to Twilio number app.post('/sms', function (req, res) { const body = req.body.Body const num = req.body.From // Sends message to Slack - in format from { // `res` contains information about the posted message console.log('Message sent: ', res.ts); }) .catch(console.error); } to this: // Handles incoming SMS to Twilio number app.post('/sms', function (req, res) { const body = req.body.Body const num = req.body.From // Sends message to Slack - in format from { //...
Full answer by Alex Baban: https://stackoverflow.stackexchange.com/a/51603417 (CC BY-SA 4.0).
Need it done for your business? UphillTech.