Hi TjL, The API can occasionally return a Twitter Over Capacity error when the site is experiencing a lot traffic. If this happens waiting a little white and trying the request again will work.
I notice you are using a variable for the screen_name. Is this being set correctly in your environment? Best @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Thu, Dec 30, 2010 at 2:34 PM, TJ Luoma <[email protected]> wrote: > I am trying to block users on the command line like this: > > twurl -t -d "screen_name=$1" "/1/blocks/create.xml" > > I am consistently getting > > -> "HTTP/1.1 502 Bad Gateway\r\n" > > as a response to this (Twitter Over Capacity) even when it works > (verified via API and via website) > > Is this why so few 3rd party apps can successfully block? Because the > API gives bad information? I've had to follow every blocks/create with > a blocks/exists to see if it really worked or not. > > TjL > > -- > 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
