-
Notifications
You must be signed in to change notification settings - Fork 89
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
Custom faraday and verify method #55
Conversation
Woo! This looks super awesome! Overall, I'm good with this being merged. Addition of the One question – can I ask what will happen if we get say, a |
Ah, that's the beauty of Faraday's raise error method, it slurps up all errors and will put out whatever error is given (Check it out here: https://github.com/lostisland/faraday/blob/master/lib/faraday/response/raise_error.rb) So it will actually pick up edge cases like not being connected to the internet when using tugboat and the like: Before:
After:
If needed, we could make a |
Sweet, that answers my question. 👍 Agree to keep it simple for now. Pending any thoughts from @blom, this looks good to me! |
Cool, I'm gonna merge this then, any issues gimmie a shout 👍 |
Custom faraday parameters and verify method added
I've somehow managed to refresh this page twice and lose the long description of what this is doing, so going for a tl;dr now...
Benefits
faraday
, without having to make changes upstream onfaraday
itself or ondigital_ocean
nil class
stack trace (as seen in "undefined method `each' for nil:NilClass" in every endpoint #52)@blom @pearkes any thoughts?