diff --git a/amazonclouddrive/amazonclouddrive.go b/amazonclouddrive/amazonclouddrive.go index b440179af..565e47f80 100644 --- a/amazonclouddrive/amazonclouddrive.go +++ b/amazonclouddrive/amazonclouddrive.go @@ -129,10 +129,14 @@ func shouldRetry(resp *http.Response, err error) (bool, error) { if err != nil && resp != nil && resp.StatusCode == 429 { return true, err } + // Retry on occasional 500 Internal Server Error + if err != nil && resp != nil && resp.StatusCode == 500 { + return true, err + } return false, err } -// NewFs contstructs an FsAcd from the path, container:path +// NewFs constructs an FsAcd from the path, container:path func NewFs(name, root string) (fs.Fs, error) { root = parsePath(root) oAuthClient, err := oauthutil.NewClient(name, acdConfig)