Skip to content

timeout: undefined method `to_sym' for :Integer #603

@Deepak275

Description

@Deepak275

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions