From 09a0dc16005f6c51bc0f29a2f08fa8864b58e9d0 Mon Sep 17 00:00:00 2001 From: Evan Harris Date: Wed, 2 Sep 2020 12:53:27 -0500 Subject: [PATCH] opendrive: Do not retry 400 errors This type of error is unlikely to be an error that can be resolved by a retry, and is triggered in #2296 by files with a timestamp before the unix epoch. --- backend/opendrive/opendrive.go | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/opendrive/opendrive.go b/backend/opendrive/opendrive.go index 7ba80a00f..6bba537bb 100644 --- a/backend/opendrive/opendrive.go +++ b/backend/opendrive/opendrive.go @@ -646,7 +646,6 @@ func (f *Fs) Put(ctx context.Context, in io.Reader, src fs.ObjectInfo, options . // retryErrorCodes is a slice of error codes that we will retry var retryErrorCodes = []int{ - 400, // Bad request (seen in "Next token is expired") 401, // Unauthorized (seen in "Token has expired") 408, // Request Timeout 423, // Locked - get this on folders sometimes