Skip to content
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

axios 污染问题 & uploadFile 错误 #44

Open
chutaozh opened this issue May 13, 2024 · 0 comments
Open

axios 污染问题 & uploadFile 错误 #44

chutaozh opened this issue May 13, 2024 · 0 comments

Comments

@chutaozh
Copy link

chutaozh commented May 13, 2024

  1. 项目中也使用了axios,并做了拦截器配置,互相污染导致obs相关接口无法上传,项目中不得不创建新axios实例来规避污染,建议sdk也新建一个实例吧
  2. uploadFile中,合并分段需要字段ETag,但在合并前,上传分段接口是没有返回ETag字段的,所以合并分段前的part.ETag赋值为undefined,导致合并接口入参错误
    image
    如果uploadPart中不提供ETag字段,那字段可以从 listParts 中取到
    image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant