From 9a7a3ade8cff42ca0e73365071e49d1c317fda3e Mon Sep 17 00:00:00 2001 From: James Wen Date: Sun, 13 Dec 2015 12:49:20 -0500 Subject: Add more exception classes not to retry on to the Fetcher - These are all Exception classes that indicate scenarios where retrying the fetch/request would not suddenly have a successful result. --- lib/bundler/fetcher.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/bundler/fetcher.rb b/lib/bundler/fetcher.rb index 4b79a7d883..aaf4679501 100644 --- a/lib/bundler/fetcher.rb +++ b/lib/bundler/fetcher.rb @@ -52,7 +52,10 @@ module Bundler # Exceptions classes that should bypass retry attempts. If your password didn't work the # first time, it's not going to the third time. - AUTH_ERRORS = [AuthenticationRequiredError, BadAuthenticationError] + AUTH_ERRORS = [AuthenticationRequiredError, BadAuthenticationError, Net::HTTPBadGateway, + Net::HTTPBadRequest, Net::HTTPForbidden, Net::HTTPMethodNotAllowed, + Net::HTTPMovedPermanently, Net::HTTPNotImplemented, Net::HTTPNotFound, + Net::HTTPRequestEntityTooLarge, Net::HTTPNoContent] class << self attr_accessor :disable_endpoint, :api_timeout, :redirect_limit, :max_retries -- cgit v1.2.1