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

Got "MissingKeys" error using app-only auth #362

Closed
JiA1996 opened this issue Nov 21, 2020 · 8 comments
Closed

Got "MissingKeys" error using app-only auth #362

JiA1996 opened this issue Nov 21, 2020 · 8 comments

Comments

@JiA1996
Copy link

JiA1996 commented Nov 21, 2020

I was trying to use app-only auth to download big amount of tweets.
I set app_auth = true and I did not provide any access_token and access_token_secret.
And then I got MissingKeys error.

After reading the source code I assigned some arbitrary value to access_token and access_token_secret and everything works fine.
But app-only auth shoudn't require access_token and access_token_secret right?

@edsu
Copy link
Member

edsu commented Nov 21, 2020

Do you have the app keys set?

@JiA1996
Copy link
Author

JiA1996 commented Nov 21, 2020

Do you have the app keys set?

I have both my consumer_key and consumer_secret set.

update: If I only provide consumer_key and consumer_secret to the twarc, it works on my computer running python 3.8.
However I still get key error on linux running python 2.x.
I'm not sure if it is my problem or not.

@edsu
Copy link
Member

edsu commented Dec 14, 2020

Are you testing with Python 2 and 3 on the same computer?

@JiA1996
Copy link
Author

JiA1996 commented Dec 14, 2020

Are you testing with Python 2 and 3 on the same computer?

Python 3 on my computer and Python 2 on remote linux server

@edsu
Copy link
Member

edsu commented Dec 14, 2020

Is the same version of twarc installed on both?

twarc version

@JiA1996
Copy link
Author

JiA1996 commented Dec 14, 2020

yes

@edsu
Copy link
Member

edsu commented Dec 14, 2020

Can you send me the contents of your twarc.log from your server environment?

@igorbrigadir
Copy link
Contributor

Python 2 is no longer supported, going to close this old one - if it's still a problem, feel free to reopen!

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

3 participants