twitter-monitor
twitter-monitor copied to clipboard
Why do I always receive this error?
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.
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.