twilio-labs / code-exchange

Code guidelines, feature requests and bug reports for the Twilio CodeExchange
https://www.twilio.com/code-exchange
MIT License
25 stars 14 forks source link

voice-javascript-sdk-quickstart-python twilio.Device Error: AccessTokenInvalid (20101): #50

Open oplatek opened 1 year ago

oplatek commented 1 year ago

Where has this bug occurred? I followed the instructions in README

Describe the bug The event log contains the error which prevents making any further call.

>  Requesting Access Token...
>  Got a token.
>  Initializing device
>  Twilio.Device Error: AccessTokenInvalid (20101): Twilio was unable to validate your Access Token

To Reproduce I followed the README on linux Ubuntu 20.04 server and tried two versions of twilio JS SDK "twilio-voice.js-2.0.1" and "twilio-voice.js-2.3.0" with the same result. And use MacOS Safari for client.

Any tips how to setup my twilio account or use this example are very welcome.

Screenshots Screenshot 2023-01-31 at 15 27 59

welcome[bot] commented 1 year ago

Thank you so much for opening your first issue in this project! We'll try to get back to it as quickly as possible.

While you are waiting...here's a random picture of a corgi (powered by dog.ceo) picture of dog

ianwhillans commented 1 year ago

also having the same issue, hoping I'm not just daft. Any help on this?

Requesting Access Token...

Got a token. Initializing device Twilio.Device Error: AccessTokenInvalid (20101): Twilio was unable to validate your Access Token

edwinrozendom commented 1 year ago

Are you using a different Twilio region? I had the same problem, but solved it by specifying the Twilio region. See: https://www.twilio.com/docs/iam/access-tokens#step-3-generate-token

alimurtaza026 commented 5 months ago

Hi guys, check if you set it up correctly

muhaiminShihab commented 4 months ago

Where has this bug occurred? I followed the instructions in README

Describe the bug The event log contains the error which prevents making any further call.

>  Requesting Access Token...
>  Got a token.
>  Initializing device
>  Twilio.Device Error: AccessTokenInvalid (20101): Twilio was unable to validate your Access Token

To Reproduce I followed the README on linux Ubuntu 20.04 server and tried two versions of twilio JS SDK "twilio-voice.js-2.0.1" and "twilio-voice.js-2.3.0" with the same result. And use MacOS Safari for client.

Any tips how to setup my twilio account or use this example are very welcome.

Screenshots Screenshot 2023-01-31 at 15 27 59

I had the same issue. How I can fix this?