mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 23:28:57 +01:00
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.
This commit is contained in:
parent
dd11778ac6
commit
09a0dc1600
@ -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
|
// retryErrorCodes is a slice of error codes that we will retry
|
||||||
var retryErrorCodes = []int{
|
var retryErrorCodes = []int{
|
||||||
400, // Bad request (seen in "Next token is expired")
|
|
||||||
401, // Unauthorized (seen in "Token has expired")
|
401, // Unauthorized (seen in "Token has expired")
|
||||||
408, // Request Timeout
|
408, // Request Timeout
|
||||||
423, // Locked - get this on folders sometimes
|
423, // Locked - get this on folders sometimes
|
||||||
|
Loading…
Reference in New Issue
Block a user