title: Ruby's Twitter REST api not working
body: <p>I am trying to use the ruby interface for <a href="https://github.com/sferik/twitter" rel="nofollow">twitter api</a>.The Streaming Api is working but Rest spi is not.</p>
  
  <p>Code :</p>
  
  <pre><code>require 'rubygems'
  require 'twitter'
  
  client = Twitter::REST::Client.new do |config|
    # you must set up an application using Twitter's developer site, and set these values:
    # (See the Configuration example)
    config.consumer_key        = "xxx"
    config.consumer_secret     = "xxx"
    config.access_token        = "xxx-xxx"
    config.access_token_secret = "xxx"
  end
  
  puts client.user('xyz')
  </code></pre>
  
  <p>I am always getting the following error - </p>
  
  <pre><code>Faraday::Builder is now Faraday::RackBuilder.
  /home/atul/.rvm/gems/ruby-2.1.0/gems/twitter-5.5.1/lib/twitter/rest/client.rb:143:in `rescue in request': execution expired (Twitter::Error)
  from /home/atul/.rvm/gems/ruby-2.1.0/gems/twitter-5.5.1/lib/twitter/rest/client.rb:131:in `request'
  from /home/atul/.rvm/gems/ruby-2.1.0/gems/twitter-5.5.1/lib/twitter/rest/client.rb:97:in `get'
  from /home/atul/.rvm/gems/ruby-2.1.0/gems/twitter-5.5.1/lib/twitter/rest/api/utils.rb:118:in `object_from_response'
  from /home/atul/.rvm/gems/ruby-2.1.0/gems/twitter-5.5.1/lib/twitter/rest/api/users.rb:257:in `user'
  from actresses.rb:17:in `&lt;main&gt;'
  </code></pre>
  
  <p>I am trying to increase the time out because of <a href="https://github.com/sferik/twitter/issues/401" rel="nofollow">this</a> solution but am able to figure out how to do that.
  I don't understand what am I doing wrong as the same code is working for Streaming api after making the appropriate changes.</p>