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

Why do I always receive this error? #8

Open
wujy2015 opened this issue Jun 10, 2017 · 1 comment
Open

Why do I always receive this error? #8

wujy2015 opened this issue Jun 10, 2017 · 1 comment

Comments

@wujy2015
Copy link

06/10 04:20:45PM INFO Starting new twitter stream with 1 terms:
06/10 04:20:45PM INFO [u'data']
06/10 04:20:51PM ERROR Twitter returned error code 420
06/10 04:21:04PM WARNING Stream exists but isn't running
06/10 04:21:04PM INFO Receiving tweets at 0.0 tps
06/10 04:21:04PM INFO Restarting stream...
06/10 04:21:04PM WARNING Stopping twitter stream...
06/10 04:21:05PM INFO Starting new twitter stream with 1 terms:

I got this error at beginning the program starting to run. After couple of minutes, it can print the data. If I interrupt and restart the program, the error comes back.

@michaelbrooks
Copy link
Owner

You can find descriptions of the error codes here: https://dev.twitter.com/overview/api/response-codes

420 implies that you are being rate limited. There are various reasons this can happen - perhaps your account is being used for some other Twitter API activity at the same time. Does it work better if you try a more specific query (something more specific than "data")? I haven't worked with the Twitter API recently, so I can't really offer more help than that.

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

2 participants