Hi Team,
I am trying to set timeout before the doing the request. I am getting
/Users/.rbenv/versions/2.4.3/lib/ruby/gems/2.4.0/gems/http-2.2.2/lib/http/chainable.rb:94:in timeout': undefined method to_sym' for 3:Integer (NoMethodError)
Did you mean? to_s
Here is my code snippet:
response = HTTP.headers(params[:header]).timeout(3).get(url, body: params[:body])
Please help me with anything I am missing here