One or more of the specified parts could not be found or the specified entity tag might not have matched the part's entity tag-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

One or more of the specified parts could not be found or the specified entity tag might not have matched the part's entity tag

jeffrey_阳光 2016-07-16 22:29:35 7936

采用了文章:https://cnodejs.org/topic/570f8961400ca111729e8858?spm=5176.doc32070.2.5.sAkOgk
成功完成的图片文件上传的任务,但有些瑕疵:

  1. 在上传某些图片时,就会报错:

POST http://xxx-xxx.oss-cn-hangzhou.aliyuncs.com/object?uploadId=7EC2961FB4044BDD81913B27212362AE 400 (Bad Request)
aliyun-oss-sdk.min.js:4 Uncaught (in promise) Error: One or more of the specified parts could not be found or the specified entity tag might not have matched the part's entity tag.

at o.<anonymous> (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:4:16188)
at i (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23661)
at u._invoke (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:25098)
at u.e.(anonymous function) [as next](http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23840)
at i (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23661)
at u._invoke (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:24720)
at u.e.(anonymous function) [as next](http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23840)
at a (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:9:25589)

======================================================

  1. 在上传 mp4文件时,会报错:

POST http://fs-profile.oss-cn-hangzhou.aliyuncs.com/object?uploadId=8AC8B8A21BFC47D9997DC4D273517EA3 400 (Bad Request)
aliyun-oss-sdk.min.js:4 Uncaught (in promise) Error: One or more of the specified parts could not be found or the specified entity tag might not have matched the part's entity tag.

at o.<anonymous> (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:4:16188)
at i (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23661)
at u._invoke (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:25098)
at u.e.(anonymous function) [as next](http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23840)
at i (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23661)
at u._invoke (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:24720)
at u.e.(anonymous function) [as next](http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:6:23840)
at a (http://gosspublic.alicdn.com/aliyun-oss-sdk.min.js:9:25589)
           (anonymous function)    @ aliyun-oss-sdk.min.js:4
           i                                      @ aliyun-oss-sdk.min.js:6
           (anonymous function)    @ aliyun-oss-sdk.min.js:6
           e.(anonymous function) @ aliyun-oss-sdk.min.js:6
           i                                      @ aliyun-oss-sdk.min.js:6
           (anonymous function)    @ aliyun-oss-sdk.min.js:6
           e.(anonymous function) @ aliyun-oss-sdk.min.js:6
           a                                     @ aliyun-oss-sdk.min.js:9

======================================================

其实这两错几乎一样,请问为什么?报错的图片及mp4就在文章下方,我下载再次试过,还是报同样的错
注:70e6e3272a7748b7a2795266fd8973f5d95c3d2f.png,是mp4下载后请修改文件扩展名

p104_
1

前端开发
分享到
取消 提交回答
全部回答(5)
添加回答

集结各类场景实战经验,助你开发运维畅行无忧

推荐文章
相似问题
推荐课程