All Products
Search
Document Center

Object Storage Service:0010-00000209

Last Updated:Mar 20, 2026

Problem description

The tag key in the PutObjectTagging request body exceeds the maximum allowed length.

Causes

The Key element in the request XML body exceeds 128 characters. OSS enforces a 128-character limit on each tag key.

Examples

None

Solutions

Shorten each tag key to 128 characters or fewer, then resubmit the request.

The following example shows a valid PutObjectTagging request. The tag key age is 3 characters, which is within the 128-character limit.

PUT /objectname?tagging&versionId=CAEQExiBgID.jImWlxciIDQ2ZjgwODIyNDk5MTRhNzBiYmQwYTZkMTYzZjM0****
Content-Length: 90
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: Wed, 24 Jun 2020 08:58:15 GMT
Authorization: OSS qn6q**************:77Dv****************
<Tagging>
  <TagSet>
    <Tag>
      <Key>age</Key>
      <Value>18</Value>
    </Tag>
  </TagSet>
</Tagging>

References