Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timeout configuration doesn't change Faraday's timeout #10

Open
jeremyjpark opened this issue Jun 30, 2022 · 3 comments
Open

Timeout configuration doesn't change Faraday's timeout #10

jeremyjpark opened this issue Jun 30, 2022 · 3 comments

Comments

@jeremyjpark
Copy link

Hi there, I was trying to use the timeout configuration api parameter that was added in the 21.12 release and was not sure if I'm understanding its intended usage correctly. Our initializer is set up as follows:

AsposeWordsCloud.configure do |config|
  config.client_data['ClientSecret'] = ...
  config.client_data['ClientId'] = ...
  config.timeout = 120
end

It looks like the default adapter is Net Http for Faraday 1.10.0 which has a default timeout of 60 seconds.

I would like to extend the timeout for my requests to be greater than 60 seconds as specified in the configuration, but the api client makes it seem like the request will timeout at lesser of 60 seconds (from the default adapter) or the configured timeout (120 seconds in in my case).

Is there an existing way to specify the request timeout for Faraday when initializing the connection in the ruby sdk? Something with the same effect as

conn = Faraday.new url, { :params => query_params, ..., :request=> { :timeout => @config.timeout } do |f|
  ...
end
@nikhilgoyal22
Copy link

nikhilgoyal22 commented Jul 4, 2022

@jeremyjpark 💯 . I am facing the same issue and have mentioned the same thing in their forums multiple times.

@YaroslawEkimov can we get some info on this issue?

@tilalahmad
Copy link

@jeremyjpark , @nikhilgoyal22

We noticed that the timeout property was not working as expected in Aspose.Words Cloud SDK for Ruby and fixed it. The fix will be available in the July 2022 release of Aspose.Words Cloud SDK for Ruby.

@nikhilgoyal22
Copy link

@tilalahmad Nice 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants