-
Notifications
You must be signed in to change notification settings - Fork 323
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
Adds Faraday options "timeout" and "open_timeout" accessible in her config #400
Conversation
Any reason this hasn't been merged in? |
bump |
hi @abhikalakuntla I've just got commit access on this repo and plan to get back on track with maintenance over time - will be in touch soon! |
@edtjones hi, any update? :) |
@abhikalakuntla sorry for the delay. @ticktricktrack this feels like one which should be easy to merge. Do you agree? |
bump |
Sorry you've had to chase. Will review and merge tomorrow.
Happy new year!
…--
Sent from my phone: please forgive the brevity.
Ed Jones
On 5 Jan 2017, at 02:52, abhikalakuntla ***@***.***> wrote:
bump
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@abhikalakuntla I've just released version 0.8.4 with this PR merged. I'm really grateful for the input - thankyou. |
Thank you :) |
Sweet job on getting this merged in! Was running off @abhikalakuntla's branch so I had this support, nice to be back on the upstream. Good job folks! |
Thanks @SirRawlins - would be delighted to have whatever input you have time for. |
I can't seem to be able to pass
I was able to fix it by setting the two options inside the block instead of using them as parameters instead, as mentioned in lostisland/faraday#417 (comment): timeout = options.delete(:timeout) || 5
open_timeout = options.delete(:open_timeout) || 1
Her::API.setup(options) do |connection|
connection.options.timeout = timeout
conn.options.open_timeout = open_timeout
end so I'm not sure |
@abhikalakuntla @SirRawlins can you help with this? |
@etiennebarrie believe you're correct and these options were always available as part of the Her::API.setup(url: "https://api.example.com", request: { timeout: 10, open_timeout: 2 }) |
Contrary to the the comments in this issue: #120, the options
timeout
andopen_timeout
are not being accepted by Her.Github page for Faraday