-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
No error checking when running curl #29
Comments
@dpiddy what should we do here? just use the |
I'd start with having To get fancier with curl, I'd suggest something like: $ curl --fail --retry 3 --retry-delay 1 --connect-timeout 3 --max-time 20 ... This will get some retry on simple transient S3 issues. |
👍 |
Getting bit by this again today: $ curl https://s3.amazonaws.com/heroku-buildpack-ruby/ruby_versions.yml
<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>InternalError</Code><Message>We encountered an internal error. Please try again.</Message><RequestId>F95682256711C6D9</RequestId><HostId>lipO+wYGTyZqVPUBv//x5inR6uM8ZQWnOQopnXAX0n92ngS1t76zxTSp24t9r2uE</HostId></Error> Causing the weirdness I linked above as well as the indication that |
@dpiddy, would you be willing to work this into a PR. I don't see any reason to hide this information from users, and the retry code would be icing on the cake. Seems like a good idea. |
Have a start of something here. |
@dpiddy I was trying this out but ran into this issue: |
Did you pick up the change to |
Nope. Let me try that. |
It's been a few months, is your branch |
Probably not. Maybe at this point I'd look into putting error checking and options (such as |
[close #29] Better Retry/Failure Support for Curl
curl is shelled out to in various places, such as here, but it's not run with
--fail
and therun
method doesn't do any error checking.When a download done with curl silently fails it can lead to surprising errors such as
can't convert nil into String (TypeError)
fromFile.expand_path
in add_bundler_to_load_path.The text was updated successfully, but these errors were encountered: