Skip to content
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

'code': 32, 'message': 'Could not authenticate you.' #1302

Closed
heyJoshLee opened this issue Dec 9, 2019 · 5 comments
Closed

'code': 32, 'message': 'Could not authenticate you.' #1302

heyJoshLee opened this issue Dec 9, 2019 · 5 comments
Labels
No Reproduction This is not reproducible Stale This is inactive, outdated, too old, or no longer applicable

Comments

@heyJoshLee
Copy link

I'm getting the above error. My credentials are fine because I can authenticate with another API connected to Twitter. I heard this issue might be because I'm using Phyton 3.8.0.

Will using a different version of Phyton help? If so, how do I change my Phyton version? (I'm a Ruby guy)

@Harmon758
Copy link
Member

Double check that your credentials are correct and that your system clock is in sync with NTP.
For more information, see https://developer.twitter.com/en/docs/basics/authentication/guides/authorizing-a-request.

It's unlikely that it has anything to do with your Python (like the snake, not the plant part) version.

For code block usage, see https://help.github.com/articles/creating-and-highlighting-code-blocks/.

@Harmon758 Harmon758 added the No Reproduction This is not reproducible label Dec 9, 2019
@heyJoshLee
Copy link
Author

This is the error I'm getting.

Traceback (most recent call last):
  File "bot-check.py", line 39, in <module>
    public_tweets = api.home_timeline()
  File "C:\Users\Josh\AppData\Local\Programs\Python\Python38\lib\site-packages\tweepy\binder.py", line 250, in _call
    return method.execute()
  File "C:\Users\Josh\AppData\Local\Programs\Python\Python38\lib\site-packages\tweepy\binder.py", line 233, in execute
    raise TweepError(error_msg, resp, api_code=api_error_code)
tweepy.error.TweepError: [{'code': 32, 'message': 'Could not authenticate you.'}]

I have no problem authenticating using Ruby with the Twitter gem.

Also, I checked out NTP issue, but I'm really not sure how to address that if that's the problem.

@Harmon758
Copy link
Member

Twitter will reject requests which were created too far in the past, so it is important to keep the clock of the computer generating requests in sync with NTP.

Again, double check that you're passing the credentials correctly and that your clock is in sync.

@Harmon758 Harmon758 added the Stale This is inactive, outdated, too old, or no longer applicable label Jan 6, 2020
@SirDave001
Copy link

I also have this error thrown at me. How do fix this?
File "C:\Users\Sir Dave\AppData\Local\Programs\Python\Python311\Lib\site-packages\tweepy\binder.py", line 234, in execute
raise TweepError(error_msg, resp, api_code=api_error_code)
tweepy.error.TweepError: [{'code': 32, 'message': 'Could not authenticate you.'}]

@Harmon758
Copy link
Member

Please don't necrobump old closed issues.
This has been answered.

@Harmon758 Harmon758 closed this as not planned Won't fix, can't repro, duplicate, stale May 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
No Reproduction This is not reproducible Stale This is inactive, outdated, too old, or no longer applicable
Projects
None yet
Development

No branches or pull requests

3 participants