Got an error message: Can't retrieve timeline: Rate limit exceeded
Hi, I'm using the example in echobot, and I just changed the essential four login keys. But I got an error in the log like this:
ERROR: Can't retrieve timeline: Rate limit exceeded (88)
This is followed by another message:
INFO: Next tweet in 1800 seconds
I believe I didn't exceed Twitter's 15 minutes limit, and I don't have other jobs run in the background. So why I get an error like this?
Thanks.
If you have started and then stopped the bot over 15 times in 15 minutes, it's possible that you've gone over the rate limit. Technically the bot should not check the timeline over once per minute, but that's only if it's been running continuously and has had a chance to remember the last time it checked.
Unfortunately twitterbot doesn't have rate limit checks, but you can get detailed information on your rate limits from tweepy directly by calling bot.api.rate_limit_status() -- see http://docs.tweepy.org/en/latest/api.html and https://dev.twitter.com/rest/reference/get/application/rate_limit_status for details.
In the future, I'd like to have an option to use the streaming API to avoid this issue, but unfortunately I don't have time to implement it now. Sorry!
On Tue, Mar 3, 2015 at 10:10 AM liangchen1ce [email protected] wrote:
Hi, I'm using the example in echobot, and I just changed the essential four login keys. But I got an error in the log like this:
ERROR: Can't retrieve timeline: Rate limit exceeded (88)
This is followed by another message:
INFO: Next tweet in 1800 seconds
I believe I didn't exceed Twitter's 15 minutes limit, and I don't have other jobs run in the background. So why I get an error like this?
Thanks.
— Reply to this email directly or view it on GitHub https://github.com/thricedotted/twitterbot/issues/8.