#8 InvalidPart

已關閉
node5 年之前建立 · 0 條評論

有时候上传图片会出现 InvalidPart 的错误。需要在 OSS bucket 上设置一下 expose headers

  • 将expose headers设置成 etag x-oss-request-id

https://help.aliyun.com/document_detail/32069.html?spm=a2c4e.11153987.0.0.2b0711937l7Coe

https://help.aliyun.com/document_detail/32005.html?spm=a2c4e.11155515.0.0.oQV3GW

<?xml version="1.0" encoding="UTF-8"?>
<Error>
  <Code>InvalidPart</Code>
  <Message>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.</Message>
  <RequestId>5B54AD7F07B995F5CEF60349</RequestId>
  <HostId>links-comment.oss-cn-beijing.aliyuncs.com</HostId>
  <ETag>undefined</ETag>
  <PartNumber>1</PartNumber>
  <UploadId>B05FDCE070B64A5D897F91AA815402EE</UploadId>
</Error>
有时候上传图片会出现 InvalidPart 的错误。需要在 OSS bucket 上设置一下 `expose headers` - 将expose headers设置成 etag x-oss-request-id https://help.aliyun.com/document_detail/32069.html?spm=a2c4e.11153987.0.0.2b0711937l7Coe https://help.aliyun.com/document_detail/32005.html?spm=a2c4e.11155515.0.0.oQV3GW ``` <?xml version="1.0" encoding="UTF-8"?> <Error> <Code>InvalidPart</Code> <Message>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.</Message> <RequestId>5B54AD7F07B995F5CEF60349</RequestId> <HostId>links-comment.oss-cn-beijing.aliyuncs.com</HostId> <ETag>undefined</ETag> <PartNumber>1</PartNumber> <UploadId>B05FDCE070B64A5D897F91AA815402EE</UploadId> </Error> ```
Paul5 年之前 關閉
登入 才能加入這對話。
未選擇標籤
未選擇里程碑
Nobody assigned
1 參與者
Due Date

No due date set.

Loading…
取消
儲存
尚未有任何內容