uptoc icon indicating copy to clipboard operation
uptoc copied to clipboard

支持网络错误重传

Open OopsYao opened this issue 3 years ago • 3 comments

请问这个支持出现网络错误后重新尝试吗,在GitHub action上用这个上传文件到腾讯云有时会出现网络问题。考虑设定一个重试次数之类的。

OopsYao avatar Dec 03 '20 12:12 OopsYao

我之前只发现github往国内的云存储上传速度比较慢,倒是没遇到过失败的。 可以考虑增加重试机制

saltbo avatar Dec 04 '20 02:12 saltbo

今日上传七牛,超时。考虑增加重试机制 +1 https://github.com/xiaods/k8e/runs/2067662668?check_suite_focus=true

--driver qiniu --region cn-south-1 --bucket k8e --exclude .cache,test dist/artifacts
2021/03/09 15:16:33 find 1 local objects
2021/03/09 15:16:33 find 1 remote objects
2021/03/09 15:16:33 compare the local files and the remote objects...
2021/03/09 15:16:33 found 1 files to be uploaded, uploading...
2021/03/09 15:16:33 [changed] dist/artifacts/k8e => k8e
2021/03/09 15:29:13 RequestError: send request failed
caused by: Put https://k8e.s3-cn-south-1.qiniucs.com/k8e: stream error: stream ID 1; PROTOCOL_ERROR

xiaods avatar Mar 09 '21 15:03 xiaods

confirmed: 从github action发布到国内的七牛区,上传失败。海外区可以。另外域名在七牛是需要审核的,不然国内转为loop地址。

xiaods avatar Mar 20 '21 00:03 xiaods