code-exchange icon indicating copy to clipboard operation
code-exchange copied to clipboard

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

Open oplatek opened this issue 2 years ago • 5 comments

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

oplatek avatar Jan 31 '23 14:01 oplatek

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

welcome[bot] avatar Jan 31 '23 14:01 welcome[bot]

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

ianwhillans avatar Mar 14 '23 22:03 ianwhillans

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

edwinrozendom avatar Mar 30 '23 12:03 edwinrozendom

Hi guys, check if you set it up correctly

alimurtaza026 avatar Jan 20 '24 02:01 alimurtaza026

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?

muhaiminShihab avatar Feb 27 '24 17:02 muhaiminShihab