Page 1 of 1

Twilio Not Working

Posted: Sat Apr 25, 2015 9:24 pm
by KorryRogers

I've went through the Twilio tutorial. I've setup a proxy, encoded my SID:AuthToken in base64 in the database, and I can't get the test pages from the tutorial to work. When I try to send a message, I get this error in the console: "https://api.appery.io/rest/1/proxy/tu... 400 (Bad Request)"

When I try to view history, I get the same error.

I've got a paid Twilio account, and I'm using the live credentials.

I get this response when I try to test the premade services:

{
"status":401,
"uri":"https://api.twilio.com/2010-04-01/Acc...",
"response":{
"code":20003,
"detail":"Your AccountSid or AuthToken was incorrect.",
"message":"Authentication Error - No credentials provided",
"more_info":"https://www.twilio.com/docs/errors/20003",
"status":401
}
}

Why does it say "NO CREDENTIALS PROVIDED" Any ideas?


Twilio Not Working

Posted: Sat Apr 25, 2015 10:05 pm
by KorryRogers

I figured it out. For some reason the proxy DOES NOT work. When in use Twilio never sees any type of authorization token at all. I just put the base64 encoded authorization straight into the twilio settings file and adjusted the services accordingly and it's working now. Is it dangerous to do it this way?


Twilio Not Working

Posted: Sun Apr 26, 2015 9:43 pm
by Illya Stepanov

Hi Korry -

Could you please clarify what Appery.io proxy implementation have you set for your service?

You can try the old proxy, this should work - https://devcenter.appery.io/documenta...

And could you please also clarify what do you mean by twillio settings file where you put your authorization code?

If you follow our steps here this way they be securely stored -- https://devcenter.appery.io/documenta...