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

Could not authenticate you #22

Open
ArrowHuang opened this issue Oct 8, 2019 · 0 comments
Open

Could not authenticate you #22

ArrowHuang opened this issue Oct 8, 2019 · 0 comments

Comments

@ArrowHuang
Copy link

Excuse me, every time I try to run twphotos, I get the following message:

Retrieving photos from Twitter API...
Traceback (most recent call last):
File "/Users/apple/anaconda3/envs/MuseumBot/bin/twphotos", line 10, in
sys.exit(main())
File "/Users/apple/anaconda3/envs/MuseumBot/lib/python3.6/site-packages/twphotos/photos.py", line 291, in main
twphotos.get()
File "/Users/apple/anaconda3/envs/MuseumBot/lib/python3.6/site-packages/twphotos/photos.py", line 71, in get
self.auth_user = self.verify_credentials().screen_name
File "/Users/apple/anaconda3/envs/MuseumBot/lib/python3.6/site-packages/twphotos/photos.py", line 162, in verify_credentials
return self.api.VerifyCredentials()
File "/Users/apple/anaconda3/envs/MuseumBot/lib/python3.6/site-packages/twitter/api.py", line 4700, in VerifyCredentials
data = self._ParseAndCheckTwitter(resp.content.decode('utf-8'))
File "/Users/apple/anaconda3/envs/MuseumBot/lib/python3.6/site-packages/twitter/api.py", line 4908, in _ParseAndCheckTwitter
self._CheckForTwitterError(data)
File "/Users/apple/anaconda3/envs/MuseumBot/lib/python3.6/site-packages/twitter/api.py", line 4928, in _CheckForTwitterError
raise TwitterError(data['errors'])
twitter.error.TwitterError: [{'code': 32, 'message': 'Could not authenticate you.'}]

But I'm sure my api key is correct because I have tried other codes and it works.
Could you please tell me how can I solve the problem?
Thx

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant