-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fetch_token() error: "Missing valid authorization header" #2035
Comments
Double check that your client ID and secret are correct. Regenerate the secret if necessary. |
Thanks Harmon, I've regenerated a couple times and updated my env variables accordingly each time but it doesn't make a difference. I've also printed the auth url's state and the request url state on callback and they match. The callback url correctly contains a state, and a code. |
I'm running into this exact same problem, any update ? |
same issue any update ? |
I am also running in the same problem |
Hi,
I'm receiving the following error whenever a user attempts to authorise themself with my Flask based webapp using OAuth 2.0
Authorization Code with PKCE. The error occurs when handling the callback from Twitter, specifically when calling fetch_token()
I'm using tweepy==4.12.1 and Flask==2.2.2
I am generating the authorisation URL like so:
And then handling the callback from Twitter like this:
Any ideas at all will be appreciated as to what is causing this error, I have tried different configurations on the Twitter dev portal for my app such as switching between a public client and a confidential client.
Thanks,
Aurillia
The text was updated successfully, but these errors were encountered: