Twitter API: I keep hitting 502 status codes on /statuses/user_timeline

18 views
Skip to first unread message

kovshenin

unread,
Sep 22, 2009, 5:19:18 AM9/22/09
to Twitter Development Talk
Hey there.

Everything was working fine until I got hit by loads of traffic from a
post on Mashable. I started to get way too much 502 errors for the /
statuses/user_timeline method. The API docs say 502 means "Twitter is
down" but Twitter is fine and this has been going on for three days
now.

I have a developer account with 20,000 signed API calls, I output in a
debug log the current limit status plus the error code received. I
haven't gone lower than 16,000 calls left with 502 errors all around.
When applying for a dev account at Twitter I didn't mention my IP
address so I thought it was the problem, but since the API calls are
signed I don't think so.

I double checked with a simple unsigned cURL call from the server, and
get the following response for my IP address: 149/150 and it hasn't
got any lower than that.

Anybody had similar problems?

Thank you,
~ @kovshenin

kovshenin

unread,
Sep 23, 2009, 3:47:21 AM9/23/09
to Twitter Development Talk
Here's a sample entry from my logs if that would help you:

23.09.2009 02:51:16 Request: aroundmarketing
23.09.2009 02:51:16 Error code: 502
23.09.2009 02:51:16 API Limit: 19103
23.09.2009 02:51:16 Response: Array
(
[url] => http://twitter.com/statuses/user_timeline/aroundmarketing.json?id=aroundmarketing&count=200
[content_type] => text/html; charset=UTF-8
[http_code] => 502
[header_size] => 253
[request_size] => 232
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 1.954398
[namelookup_time] => 0.020713
[connect_time] => 0.087937
[pretransfer_time] => 0.087948
[size_upload] => 0
[size_download] => 4729
[speed_download] => 2419
[speed_upload] => 0
[download_content_length] => 4729
[upload_content_length] => 0
[starttransfer_time] => 1.874366
[redirect_time] => 0
)

P.S. Both my account and IP address are whitelisted and have 20,000
API calls on each.
Reply all
Reply to author
Forward
0 new messages