huaweicloud-sdk-browserjs-obs
huaweicloud-sdk-browserjs-obs copied to clipboard
 我想问问这是什么问题,是uploadCheckpoint存储本地的时候被改变了,还是什么情况,
我们做了一个代理https://xx-obs.obs.cn-north-4.myhuaweicloud.com/ -》 https://**xx-obs.xx.life/ 使用 xx-obs.obs.cn-north-4.myhuaweicloud.com,上传和下载都没问题。 通过xx-obs.xx.life域名下载可以,上传会报下边的错误。我们使用aksk的方式上传,设置了is_cname: true  
使用断点上传的示例代码,会报400 Code-->InvalidPart Message-->One or more of the specified parts could not be found. The part may not have been uploaded, or the specified entity tag may not match the part's...
1. 项目中也使用了axios,并做了拦截器配置,互相污染导致obs相关接口无法上传,项目中不得不创建新axios实例来规避污染,建议sdk也新建一个实例吧 2. uploadFile中,合并分段需要字段ETag,但在合并前,上传分段接口是没有返回ETag字段的,所以合并分段前的part.ETag赋值为undefined,导致合并接口入参错误  如果uploadPart中不提供ETag字段,那字段可以从 listParts 中取到 