0032-00000001

Updated at:

Problem description

The XML body of the PutBucketLogging request is not in a valid format.

Causes

The body of the PutBucketLogging request does not use a valid XML structure, or the root node of the XML request body is not BucketLoggingStatus.

Examples

For example, you initiate the following request:

PUT /?logging HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Authorization: SignatureValue 
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingConf>
    <LoggingEnabled>
        <TargetBucket>TargetBucket</TargetBucket>
        <TargetPrefix>TargetPrefix</TargetPrefix>
    </LoggingEnabled>
</BucketLoggingConf>

The error is returned for the sample request because the operation requires the root node of the XML request body to be BucketLoggingStatus but BucketLoggingConf is specified as the root node.

Solutions

Make sure that the request body uses a valid XML structure and that the root node is BucketLoggingStatus, as shown in the following sample request:

PUT /?logging HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Authorization: SignatureValue 
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
<?xml version="1.0" encoding="UTF-8"?>
<BucketLoggingStatus>
    <LoggingEnabled>
        <TargetBucket>TargetBucket</TargetBucket>
        <TargetPrefix>TargetPrefix</TargetPrefix>
    </LoggingEnabled>
</BucketLoggingStatus>

References