You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Curl's --retry was designed to retry transient errors, i.e. ones that can get resolved on their own. You should see 5XX errors being retried as expected, whilst 4XX would fail immediately, skipping the retry. Can you confirm if you're seeing this behaviour on 5XX as well and let me know if so?
Most of the time, transient 4XX errors should be avoided (e.g. one could use 503 instead of 404 etc), but I appreciate your case might be an exception. I've added support for --retry-all-errors in v1.5 in case you still need it, however it will not work with the current ubuntu-latest due to its Curl being a tad out of date.
I'm closing this, but feel free to reopen if you're still facing problems in v1.5.
Here's my step:
But I get this immediately when the step runs
I expected retry to work even on 4XX and 5XX, not just connection refused. Was this an incorrect assumption?
The text was updated successfully, but these errors were encountered: