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

Returns the http response when giving up on retrying by status #783

Merged
merged 1 commit into from
Mar 24, 2018

Conversation

fabiokr
Copy link
Contributor

@fabiokr fabiokr commented Mar 23, 2018

Description

#773 implemented retry by status, but, when the middleware gives up on retrying, we just get nil back as the response. This PR fixes that by returning the last available response the middleware got.

https://github.com/lostisland/faraday/pull/773/files#r176779382

@fabiokr fabiokr changed the title wip Returns the http response when giving up on retrying by status Mar 23, 2018
@fabiokr fabiokr mentioned this pull request Mar 23, 2018
2 tasks
@iMacTia
Copy link
Member

iMacTia commented Mar 24, 2018

Thank you very much @fabiokr for spotting this issue and fixing it so quickly 😃
LGTM

@iMacTia iMacTia merged commit 0aebd35 into lostisland:master Mar 24, 2018
@iMacTia
Copy link
Member

iMacTia commented Mar 26, 2018

@fabiokr, @rubemz, @boone did you have a chance to test this in your application?
I was planning a v0.15.0 release but would like to ensure we got the middleware working correctly this time 😄

@fabiokr
Copy link
Contributor Author

fabiokr commented Mar 26, 2018

@iMacTia Yep, tested it and it works as expected 😄

@iMacTia
Copy link
Member

iMacTia commented May 1, 2018

@fabiokr Faraday 0.15.0 was released last week 👍

@fabiokr
Copy link
Contributor Author

fabiokr commented May 1, 2018

@iMacTia Thanks!

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

Successfully merging this pull request may close these issues.

4 participants