From 452c68115f40eb1f7985f94aac727851e8604c99 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 3 Nov 2016 18:56:21 +0000 Subject: [PATCH] acd: Add 502 Bad Gateway to list of errors we retry --- amazonclouddrive/amazonclouddrive.go | 1 + 1 file changed, 1 insertion(+) diff --git a/amazonclouddrive/amazonclouddrive.go b/amazonclouddrive/amazonclouddrive.go index da2f672d5..9df10ea75 100644 --- a/amazonclouddrive/amazonclouddrive.go +++ b/amazonclouddrive/amazonclouddrive.go @@ -142,6 +142,7 @@ var retryErrorCodes = []int{ 408, // Request Timeout 429, // Rate exceeded. 500, // Get occasional 500 Internal Server Error + 502, // Bad Gateway when doing big listings 503, // Service Unavailable 504, // Gateway Time-out }