Hello all,
I was happily using twitter4R to get the id's of some twitter users
then it suddenly stopped to work.
I noticed that the following code started to raises an RESTerror.
twitter_username = "fgiusti_oortle"
t = Twitter::Client.new
twitter_id = t.user(twitter_username).id
I give a try directly to the twitter API and it was working. So I
started to dig in the twitter4R code...
I put a cool debug after line 80 of base.rb file
puts "path #{path}"
And below you can see the output
>> require 'twitter'
=> ["Twitter"]
>> t = Twitter::Client.new
=>
>> t.user(43030791)
path /users/show?id=43030791
Twitter::RESTError: HTTP 404: Not Found at
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:39:in `raise_rest_error'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:44:in `handle_rest_response'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:18:in `http_connect'
from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:14:in `http_connect'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/user.rb:37:in `user'
from (irb):3
>> t.user("fgiusti_oortle")
path /users/show?id=fgiusti_oortle
Twitter::RESTError: HTTP 404: Not Found at
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:39:in `raise_rest_error'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:44:in `handle_rest_response'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:18:in `http_connect'
from /usr/lib/ruby/1.8/net/http.rb:543:in `start'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/base.rb:14:in `http_connect'
from /usr/lib/ruby/gems/1.8/gems/twitter4r-0.3.1/lib/twitter/
client/user.rb:37:in `user'
from (irb):4
The way twitter4R is using the users/show twitter API don't seems to
be correct (
http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-users
%C2%A0show)
That's make any sense? Why it was working before than suddenly
stopped? Did twitter changed their API?
Thanks for your attention.
--
Filipe Vernetti Giusti