If you can post complete HTTP conversations of both successful and
failed calls (any sensitive info elided) that would be great.  If the
Perl library is trying to transparently get the entire social graph
you'll definitely get rate limited.

   ---Mark

http://twitter.com/mccv



On Sat, Jan 9, 2010 at 9:31 PM, M. Edward (Ed) Borasky <[email protected]> wrote:
> Yeah ... oAuth first, then call rate limit status.
>
> I see what's happening. I'm testing "followers_ids" on an account with
> a huge number of followers (millions). I can get approximately 5000 a
> "cursor page", but at some point, the servers are saying, "Hey - quit
> doing that!" and throwing an error:
>
> Rate limit exceeded. Clients may not make more than 450 requests per
> hour.
>
> It's coming back with a "400 Bad Request". The Perl API library is
> pretty good about giving me details - here's what it's saying:
>
> x-ratelimit-limit = 450
> x-ratelimit-remaining = 0
> x-ratelimit-reset = 1263101958
> x-ratelimit-class = api_identified
>
> It looks like there is a limit of 450 requests of some kind, and once
> I go over that, I'm shut out for an hour. Curiously enough, the
> "standard" rate_limit_status operation is returning a constant 150
> hits and an hour remaining in this sequence. My code thought it was
> cool and just kept going. So it looks like there is a separate rate
> limit for cursor pages inside the "followers_id" paging mechanism.
>
> I'll know more in another hour. ;-)
>
>
> On Jan 9, 7:51 pm, Mark McBride <[email protected]> wrote:
>> How are you authorizing when calling rate limit status?  Same OAuth 
>> credentials?
>>
>>    ---Mark
>>
>> http://twitter.com/mccv
>>
>> On Sat, Jan 9, 2010 at 7:38 PM, M. Edward (Ed) Borasky <[email protected]> 
>> wrote:
>>
>> > Here's what I'm doing:
>>
>> > 1. Checking the rate limit status. It returns the following:
>>
>> > remaining hits: 61, seconds to go: 3386, sleeping 55.5081967213115
>> > seconds
>>
>> > 2. Authorizing with oAuth, desktop PIN style via Firefox
>>
>> > Starting Firefox to authorize - enter PIN: oAuth completed
>> > authorized: 1
>>
>> > 3. Calling "followers_ids". I get this:
>>
>> > Rate limit exceeded. Clients may not make more than 450 requests per
>> > hour.
>>
>> > Huh?
>>
>> > I'm doing all this in Perl - haven't had a chance to look at the HTTP
>> > stuff coming back yet. But is there another rate limit status call we
>> > need to make to check this case?
>

Reply via email to