全部產品
Search
文件中心

Object Storage Service:411錯誤

更新時間:Feb 28, 2024

本文介紹OSS返回411錯誤的原因和解決方案。

MissingContentLength

You must provide the Content-Length HTTP header

  • 問題原因:缺少內容長度,訊息為非chunked encoding或者沒有攜帶Content-Length。
  • 解決方案:請確保要求標頭採用了chunked encoding的編碼方式,或者設定了Content-Length。

ObjectNotAppendable

The object is not appendable

  • 問題原因:對一個不是可追加類型(Appendable)的Object執行AppendObject操作。
  • 解決方案:OSS有三種類型的Object,分別為Normal、Appendable和Multipart。只有Appendable類型的Object才能執行AppendObject操作。請通過GetBucket (ListObjects)介面擷取Object的儲存類型。