0019-00000006
Updated at:
Problem description
The XML body of an S3-compatible PutBucketWebSite request cannot be empty.
Causes
You sent an S3-compatible PutBucketWebSite request with an empty XML body.
Examples
The following request triggers this error:
PUT /?website HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: AWS SignatureValue
x-oss-s3-compat: true
This request fails because the XML request body is empty.
Solutions
Ensure the XML request body is well-formed and non-empty. The following example shows a valid S3-compatible PutBucketWebSite request:
PUT /?website HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Authorization: AWS SignatureValue
x-oss-s3-compat: true
<?xml version="1.0" encoding="UTF-8"?>
<WebsiteConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<IndexDocument>
<Suffix>index.html</Suffix>
</IndexDocument>
<ErrorDocument>
<Key>errorDocument.html</Key>
</ErrorDocument>
</WebsiteConfiguration>
References
Is this page helpful?