All Products
Search
Document Center

Object Storage Service:0016-00000501

Last Updated:Apr 29, 2024

Problem description

The position parameter is missing.

Causes

You initiated an AppendObject request, but the position parameter required for this operation is not included in the request URL.

Examples

The required position parameter is missing in the URL of the following request:

POST /example?append HTTP/1.1 
Host: versioning-append.oss.aliyuncs.com 
Date: Tue, 09 Apr 2019 03:59:33 GMT
Content-Length: 3
Content-Type: application/octet-stream
Authorization: OSS qn6q**************:77Dv****************

Solutions

Make that the position parameter is included in the request URL. This parameter specifies the position for the append operation. The value of position in the first AppendObject operation performed on an object must be 0. The value of position in subsequent AppendObject operations performed on the object is the current length of the object. For example, if the value of position specified in the first AppendObject request is 0 and the value of Content-Length is 65536, the value of position in the second AppendObject request must be set to 65536.

An example of the first append request:

POST /example?append&position=0 HTTP/1.1 
Host: versioning-append.oss.aliyuncs.com 
Date: Tue, 09 Apr 2019 03:59:33 GMT
Content-Length: 3
Content-Type: application/octet-stream
Authorization: OSS qn6q**************:77Dv****************

References

AppendObject