jugyo / earthquake

Twitter terminal client with streaming API support.
MIT License
661 stars 94 forks source link

unexpected token error on some retweets #47

Open TrevorBramble opened 13 years ago

TrevorBramble commented 13 years ago

I'll look into this later, but I imagine the fact that it's an XML document and there are errors coming from the JSON parser might have something to do with it. ;^)

TrevorBramble⚡ :retweet $ao retweet 'RT @defunkt: best diff ever: https://github.com/sstephenson/everyjs.com/commit/a993a3bcbc' [Yn] TrevorBramble⚡ [ERROR] 706: unexpected token at '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Twitter / Over capacity ``` ```

Twitter.com

Twitter is over capacity.

Please wait a moment and try again. For more information, check out Twitter Status »

```

' /home/trevor/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/json/common.rb:146:in parse' /home/trevor/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/json/common.rb:146:inparse' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/twitter_oauth-0.4.3/lib/twitter_oauth/client.rb:80:in post' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/twitter_oauth-0.4.3/lib/twitter_oauth/status.rb:21:inretweet' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/earthquake-0.7.1/lib/earthquake/commands.rb:125:in block (3 levels) in <top (required)>' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/earthquake-0.7.1/lib/earthquake/input.rb:90:incall' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/earthquake-0.7.1/lib/earthquake/input.rb:90:in handle_api_error' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/earthquake-0.7.1/lib/earthquake/input.rb:86:inblock in async_e' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/earthquake-0.7.1/lib/earthquake/core.rb:196:in call' /home/trevor/.rvm/gems/ruby-1.9.2-p180/gems/earthquake-0.7.1/lib/earthquake/core.rb:196:inblock in async' [$ax] TrevorBramble: RT @defunkt: best diff ever: https://github.com/sstephenson/everyjs.com/commit/a993a3bcbc (retweet of $ao) - 30 May 10:42 - earthquake.gem