0046-00000002
Updated at:
Problem description
The PutUserDefinedLogFieldsConfig request failed because the XML body contains an element with a missing closing tag.
Causes
The XML body in the request does not conform to XML syntax rules. Specifically, the HeaderSet element is not closed before </UserDefinedLogFieldsConfiguration>, which makes the XML malformed.
Examples
The following request triggers the error. The HeaderSet element has no closing tag (</HeaderSet>).
PUT /?userDefinedLogFieldsConfig HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<UserDefinedLogFieldsConfiguration>
<HeaderSet>
<header>header3</header>
</UserDefinedLogFieldsConfiguration>Solutions
Add the missing closing tag so that every XML element is properly closed.
PUT /?userDefinedLogFieldsConfig HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<UserDefinedLogFieldsConfiguration>
<HeaderSet>
<header>header3</header>
</HeaderSet>
</UserDefinedLogFieldsConfiguration>References
Is this page helpful?