moomerman/twitter_oauth — Issue #31: 503 twitter over capacity errors are not handled
Author: graaff
Created: 2011-11-02 08:24:16+00:00
State: open

Looking at the output these errors seem to produce HTML even for JSON request, so the calls to JSON.parse in client.rb provide exceptions when trying to parse it:

705: unexpected token at '

Twitter / Over capacity

Arguably this is an error from Twitter who should be expected to provide a JSON response, but it might be useful to handle this situation also in client.rb and provide the situation to the caller.