This error usually occurs when it takes longer than a certain amount of
allotted time to serve the request.

While I'd prefer it if we could serve 200 tweets at a time on a mentions
timeline consistently without throwing a 502 (the time will indeed come),
you are likely to get better, more consistently successful results by asking
for a lower count value. Alternately, if you receive a 502 as a response to
a request, wait a few seconds and then retry the request -- more often than
not the first attempt will warm the cache up for you, readying the data for
the subsequent request.

Taylor

On Fri, Jan 7, 2011 at 2:56 PM, Miguel de Icaza
<miguel.de.ic...@gmail.com>wrote:

> Hello folks,
>
>     My twitter client (TweetStation for the iPhone) broke during the
> holidays as twitter now sends me back a 502 Bad Gateway error when I post
> the following:
>
> GET /1/statuses/mentions.json?count=200 HTTP/1.1
> authorization: [My Oauth goes here]
> Host: api.twitter.com
>
>     I am doing this over HTTP, not HTTPS, would that make a difference?
>
> Miguel
>
> --
> 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
>

-- 
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