I've seen this happen quite regularly when you have count of 200 and
either rts or entities enabled. I submitted a bug report and was
simply told to lower my count because the system often takes too long
to process rts and entities the first time they are requested.

On Apr 11, 8:35 am, Randomness <randomness.bl...@gmail.com> wrote:
> Indeed, the response is a failwhale, which in my loop creates a return
> of 0 tweets, and than abandons the loop. Like you said I can put in
> one or two retries before breaking the loop. It is still funny though
> that the error happens everytime further down the loop, and stops
> happening once all tweets have been returned.
>
> On Apr 11, 1:20 am, Arnaud Meunier <arn...@twitter.com> wrote:
>
>
>
>
>
>
>
> > My guess is you probably just received an HTTP 502 (FailWhale) at some
> > point, this breaking your loop. What was the last HTTP response you received
> > (including headers)? If it's a 502 error, just handle it in your loop (i.e.
> > retrying after 10 seconds), and eventually reduce the count if that happens
> > too frequently.
>
> > Arnaud / @rno <http://twitter.com/rno>
>
> > On Sun, Apr 10, 2011 at 11:32 AM, Randomness 
> > <randomness.bl...@gmail.com>wrote:
>
> > > I a trying to capture the last 3200 tweets from an authenticated user
> > > with the statuses/user_timeline method. I use count = 200 and have a
> > > function with calls the function 16 times with page being 1 to 16, so
> > > it looks like this:
>
> > >http://api.twitter.com/1/statuses/user_timeline.xml?user_id=".$user_id.
> > > '&count=200&page='.$page.'&include_rts=true';
>
> > > The strange thing is that the first time for an account I only get a
> > > limited return of tweets like 800 or 1000. Then every subsequent try I
> > > get some more pages returned, until eventually I get all tweets sent
> > > by the user, or the maximum of 3200.
>
> > > Does anyone understand this or would this be a temporary glitch from
> > > the API ?
>
> > > --
> > > Twitter developer documentation and resources:http://dev.twitter.com/doc
> > > API updates via Twitter:http://twitter.com/twitterapi
> > > Issues/Enhancements Tracker:
> > >http://code.google.com/p/twitter-api/issues/list
> > > Change your membership to this group:
> > >http://groups.google.com/group/twitter-development-talk-Hide quoted text -
>
> > - Show quoted text -

-- 
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group: 
http://groups.google.com/group/twitter-development-talk

Reply via email to