Twilio test credentials region permission error

755 views Asked by At

I'm receiving the following error when using test credentials to create an SMS message using the Javascript SDK (v3.54.2):

function call: await this.twilio.messages.create({...})

Error Message: Error: Permission to send an SMS has not been enabled for the region indicated by the 'To' number: +47********.

Here is a screenshot form my accounts geographic permissions page which has sending to this country enabled.

According to the these docs, the "to" number should be validated as normal. I am using the special test "from" number: +15005550006

With the live credentials, this error does not occur, so I would not expect this error to occur with test credentials... but it does.

0

There are 0 answers