Appendix |
Near line 28, modify :timeout ==> 30 to another value. Below, 30 has been replaced by 60 to lengthen the timeout value to one minute: def rest_client_site(path = base_url) RestClient::Resource.new(path, :user => username, :password => password, :verify_ssl => verify_ssl, :timeout => 60, :open_timeout => 10, # TODO: what should the timeouts be? :headers => { :content_type => :json, :accept => :json, } ) end