0026-00000017
Updated at:
Problem description
The specified object is not appendable.
Causes
You initiated an AppendObject request, but the specified object in the request is not appendable.
Examples
The following code shows a sample request:
POST /example.log?append&position=6 HTTP/1.1
Content-Length: ContentLength
Content-Type: ContentType
Host: bucketname.oss.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
If the example.log object is not appendable, the error is returned after you initiate the AppendObject request.
Solutions
Initiate a HeadObject request to check whether the specified object is appendable. Sample request:
HEAD /example.log HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 05:57:00 GMT
Authorization: OSS qn6q**************:77Dv****************
Sample response:
HTTP/1.1 200 OK
Date: Fri, 03 Feb 2023 05:57:16 GMT
Content-Type: application/octet-stream
Content-Length: 4
Connection: keep-alive
x-oss-request-id: 63DCA23C5B537C30327581DB
Accept-Ranges: bytes
ETag: A5750CC1A7FD15****A2DC6300000000
Last-Modified: Fri, 03 Feb 2023 05:57:16 GMT
x-oss-object-type: Appendable
x-oss-hash-crc64ecma: 18020588380933092773
x-oss-next-append-position: 4
x-oss-storage-class: Standard
The value of the x-oss-object-type response header specifies that the object is appendable. The value of the x-oss-next-append-position response header specifies that you must set the value of the position parameter in the AppendObject request to 4.
References
Is this page helpful?