diff --git a/b2/b2.go b/b2/b2.go index a4991a1b5..cffc29950 100644 --- a/b2/b2.go +++ b/b2/b2.go @@ -1368,7 +1368,7 @@ func (o *Object) Update(in io.Reader, src fs.ObjectInfo) (err error) { // Don't retry, return a retry error instead err = o.fs.pacer.CallNoRetry(func() (bool, error) { resp, err := o.fs.srv.CallJSON(&opts, nil, &response) - retry, err := o.fs.shouldRetryNoReauth(resp, err) + retry, err := o.fs.shouldRetry(resp, err) // On retryable error clear UploadURL if retry { fs.Debug(o, "Clearing upload URL because of error: %v", err) diff --git a/b2/upload.go b/b2/upload.go index cb43adc70..b9a9ff1fd 100644 --- a/b2/upload.go +++ b/b2/upload.go @@ -178,7 +178,7 @@ func (up *largeUpload) transferChunk(part int64, body []byte) error { var response api.UploadPartResponse resp, err := up.f.srv.CallJSON(&opts, nil, &response) - retry, err := up.f.shouldRetryNoReauth(resp, err) + retry, err := up.f.shouldRetry(resp, err) // On retryable error clear PartUploadURL if retry { fs.Debug(up.o, "Clearing part upload URL because of error: %v", err)