TwilioDevEd / video-access-token-server-python

Twilio Video server-side web app in Python
MIT License
21 stars 20 forks source link

Demo returns 403 Error #11

Open hath995 opened 7 years ago

hath995 commented 7 years ago

After cloning and setting up .env file the client creation step fails

client WARN Failed to fetch Endpoint Configuration: {"message":"com.twilio.domain.auth.jwt.JwtAuthorizationException: Signature does not match the content of the request","code":9401,"user_error":true,"params":{"requestId":"52fa5328-59be-4077-b0c9-ddf94103eb1f"}}1twilio-video.min.js:90:31342

I have not changed any other file besides .env. Is this a regression or did I somehow incorrectly fill in the .env variables?

XemaA commented 7 years ago

Hello, did you find any solution for this problem ? I am new to twilio and I keep get this error, I know it's related to the token generation and It's been a while since your post but I followed the documentation provided by Twilio and no vain. Thanks :)

jefflinwood commented 7 years ago

Hello,

I have a couple of suggestions - can you let me know if they help?

Make sure that the .env.example file has been copied to the .env file

In the .env file, put in the Account SID from your Twilio account

Also put in an API Key and API Secret from https://www.twilio.com/console/dev-tools/api-keys - this should also be from your Twilio account (not a subaccount, unless you use that subaccount SID for the Account SID)

For reference, the Account SID will start with AC and the API Key will start with SK - I think the API Secret can start with anything.

If that doesn't help, reply back and we can try and figure it out - it may not be finding the .env file on your system. I just downloaded this project and tested it on Mac OS X with Python 2.7.10, but there are certainly other ways you could be running this, and find_dotenv may not be working.

Thanks!