Skip to main content

STORAGE_CONTENT_LENGTH_REQUIRED

Encountering an error? Get help with AI tools

Error Cause​

The request is missing the Content-Length header, so the server cannot determine the body size. This occurs with PUT uploads, resumable upload chunk requests using chunked transfer encoding, or a backend MissingContentLength error.

Solution​

  1. Add a Content-Length header to the request;
  2. For resumable upload chunk requests, disable chunked transfer encoding and specify the chunk size explicitly;
  3. Add the header before retrying; retrying the unchanged request will not succeed.