Problem description
The XML request body of the request to configure tags for a bucket is invalid.
Causes
You initiate a PutBucketTags request or a PutBucket request to configure object tagging, but the structure of the XML request body is invalid or does not contain the Tagging/TagSet
node.
Examples
For example, you initiate the following request:
PUT /?tagging
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2018 11:49:13 GMT
Authorization: OSS qn6q**************:77Dv****************
<TagSet>
<Tag>
<Key>testa</Key>
<Value>testv1</Value>
</Tag>
<Tag>
<Key>testb</Key>
<Value>testv2</Value>
</Tag>
</TagSet>
</Tagging>
The preceding request lacks the open tag <Tagging>, which makes the request body invalid. As a result, an error is returned.
Solutions
Make sure that the request conforms to the XML specifications and contains the Tagging/TagSet
node. For a valid request, refer to the following example.
PUT /?tagging
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2018 11:49:13 GMT
Authorization: OSS qn6q**************:77Dv****************
<Tagging>
<TagSet>
<Tag>
<Key>testa</Key>
<Value>testv1</Value>
</Tag>
<Tag>
<Key>testb</Key>
<Value>testv2</Value>
</Tag>
</TagSet>
</Tagging>