mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 14:32:14 +08:00
fix too many requests error for upload
This commit is contained in:
parent
a1577f19c5
commit
98de5b931c
@ -431,6 +431,11 @@ StepUploadPrepareUpload:
|
||||
if apierr != nil {
|
||||
result.Err = apierr
|
||||
result.ResultMessage = "创建上传任务失败:" + apierr.Error()
|
||||
if apierr.Code == apierror.ApiCodeTooManyRequests || apierr.Code == apierror.ApiCodeBadGateway {
|
||||
logger.Verboseln("create upload file error: " + result.ResultMessage)
|
||||
// 重试
|
||||
result.NeedRetry = true
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user