-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
网络不稳定导致无法上传 #76
Comments
https://help.aliyun.com/zh/oss/support/http-status-code-409 FileAlreadyExists 不携带x-oss-forbid-overwrite参数,或将此参数设置为false。 |
我加了setHeader(HTTPHeaderOssForbidOverWrite, "false")后,至少一天没有出现409错误了 |
@orzogc 同样海外上传的时候,时不时会出错 能否无论 -u 还是 -m 模式上传,计算sha1后立即保存文件对应sha1值,直到上传成功后才删除(选择性保留) |
我有空就整整 |
@362227 |
|
附上日志
|
@CEX68 |
之前也加了,还是会报错。 part, err = bucket.UploadPart(imur, f, chunk.Size, chunk.Number,
oss.SetHeader("x-oss-security-token", ot.SecurityToken),
oss.SetHeader("x-oss-forbid-overwrite", "false"), |
用 |
oss: service returned error: StatusCode=409, ErrorCode=PartAlreadyExist, ErrorMessage="For sequential multipart upload, you can't overwrite uploaded parts.",
网络有时候不稳定,然后就这样无限了,能不能遇到报错409,就删掉这个分片重新上传继续呢
上传115速度一般有10M/s+,网络不能算太烂,但因为是海外服务器,有时候不稳定
The text was updated successfully, but these errors were encountered: