mirror of
https://github.com/rclone/rclone.git
synced 2025-08-19 09:52:05 +02:00
acd: Work around 408 REQUEST_TIMEOUT and 504 GATEWAY_TIMEOUT errors
Amazon Drive sometimes returns errors at the end of large uploads * 408 REQUEST_TIMEOUT * 504 GATEWAY_TIMEOUT * 500 Internal error The file may have been uploaded correctly though, so, on error, wait for up to 2 minutes for it to appear if it was fully uploaded (configure timeout with --acd-upload-wait-time). Issues: #601 #605 #606
This commit is contained in:
@@ -532,7 +532,7 @@ func TestObjectUpdate(t *testing.T) {
|
||||
|
||||
file1.Size = int64(buf.Len())
|
||||
obj := findObject(t, file1.Path)
|
||||
obji := fs.NewStaticObjectInfo("", file1.ModTime, file1.Size, true, nil, obj.Fs())
|
||||
obji := fs.NewStaticObjectInfo(file1.Path, file1.ModTime, file1.Size, true, nil, obj.Fs())
|
||||
err := obj.Update(in, obji)
|
||||
require.NoError(t, err)
|
||||
file1.Hashes = hash.Sums()
|
||||
|
Reference in New Issue
Block a user