-
Notifications
You must be signed in to change notification settings - Fork 955
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
Rate Limit checking... lieing? #371
Comments
I... dont know how to edit my post on mobile, so apologies for the reply I forgot to mention that my loop runs on intervals of 1 minute. But it doesnt matter, because this starts happening pretty much right away. Sometimes itll go through 4 or 6 succesafully so long as theres no data in it (empty) but the moment theres a Mention available it starts throw Rate Limit Exceeded errors, or throw them even wgen empty perhaps after two iterations |
Any chance I could see the code you're running? That's definitely not supposed to happen & if you're sleeping (or whatever) for one minute, then you should never get a rate limit error since you'll always be abiding by the 15/15 call/window limits. |
See, what your saying is exactly what im expecting to happen. I will I knew I should have comitted it to SOMETHING lol On Jul 18, 2016 7:03 PM, "Jeremy Low" notifications@github.com wrote:
|
Hmm I've been testing the script again after 24 hours of not running it and I no longer seem to be running into the rate limit issue no matter how hard I try to trigger it within my current parameters. Im not completely convinced it's resolved quite yet though, ill post again if I see the problem happen |
Weird, but I'm glad it's working. One thing I noticed in the code sample you provided: You're checking for You could fix this by checking the reply limit within the for loop, but for your use case, I'd suggest using the streaming endpoints. I wrote up a post a little while ago on using them to track a hashtag, but it's basically the same principle for replying to tweets: https://iseverythingstilltheworst.com/blog/2016/05/28/capturing_twitter_streams/ Let me know if this is OK to close. |
I will check that out thank you :) and you are correct, this chunk is far from perfect and riddled with edge I dont know if twitter was just having an off day or something but ya it Again ill check out the streaming docs, does sound closer to what i think cheers! On Jul 19, 2016 2:52 AM, "Jeremy Low" notifications@github.com wrote:
|
Yeah that happens sometimes. Check out issue #350 for the last time Twitter kept reporting conflicting information. I'll close this issue in a week unless something changes. |
I appreciate it, thank you so much :) On Jul 19, 2016 8:25 AM, "Jeremy Low" notifications@github.com wrote:
|
TBH im not sure which layer the issue exists in
I have a loop that continuously looks for new mentions with the GetMentions function.
But before I call the functiom, I use the CheckRateLimit for the remaining of the call.
It will come back with 15 remaining, but then i call the function and itll throw a Rate Limit Exceeded TwitterError exception.
When I make the calls manually myself, and then run the script ill see RateLimit Remaining be 14. So thats working.
For the record, PostUpdate did this too, on the first time ever using it.
Is something in the lib cracking out?
The text was updated successfully, but these errors were encountered: