mirror of
https://github.com/tickstep/aliyunpan.git
synced 2025-01-23 22:42:15 +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 {
|
if apierr != nil {
|
||||||
result.Err = apierr
|
result.Err = apierr
|
||||||
result.ResultMessage = "创建上传任务失败:" + apierr.Error()
|
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
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user