All Products
Search
Document Center

Object Storage Service:0015-00000231

Last Updated:Jul 21, 2023

Problem description

The XML data in the request for creating a bucket is incorrectly formatted.

Causes

You initiated a PutBucket request, but the XML data in the body of the PutBucket request is incorrectly formatted, or the root node name is notCreateBucketConfiguration.

Examples

For example, you initiate the following request:

PUT / HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
x-oss-acl: Permission
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<CreateBucket>
    <StorageClass>Standard</StorageClass>
</CreateBucket>

The XML data in the CreateBucket request is invalid. As a result, the error is returned.

Solutions

Make sure that the XML data in the request body is valid. Sample code:

PUT / HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
x-oss-acl: Permission
Authorization: SignatureValue
<?xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
    <StorageClass>Standard</StorageClass>
</CreateBucketConfiguration>

References

PutBucket