Problem description
The XML request body for bucket tagging is invalid.
Causes
You sent a PutBucketTags or PutBucket request to set object tags, but the XML structure of the request body is invalid or does not contain the Tagging/TagSet node.
Examples
For example, you sent 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 is missing the opening <Tagging> tag. This invalidates the XML structure of the request body and causes an error.
Solutions
Ensure that the request XML is valid and contains the Tagging/TagSet node. 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>References
该文章对您有帮助吗?