0017-00000246

Updated at:

Description

When custom domain names are added, the error is returned, indicating that the XML body is not in a valid format.

Cause

A parameter, such as Cname, is not contained in the XML body of the request.

Example

https://jctest2.oss-ap-northeast-1.aliyuncs.com/?cname&comp=add
Authorization:OSS LTAI****************:H/ZF************************
Date:Tue, 07 Feb 2023 09:46:01 GMT
Body:
<BucketCnameConfiguration>
  <Cname>
    <Domain> </Domain>
  </Cname>
</BucketCnameConfiguration>

Error response:

<Error>
    <Code>MalformedXML</Code>
    <Message>The XML you provided was not well-formed or did not validate against our published schema.</Message>
    <RequestId>63E2194278CEA833331C7A6F</RequestId>
    <HostId>jctest2.oss-ap-northeast-1.aliyuncs.com</HostId>
    <ErrorDetail>The Cname node must contain a Domain node and not empty.</ErrorDetail>
</Error>

Solution

Specify the Cname parameter when you add custom domain names.

After you upload objects to buckets, Object Storage Service (OSS) automatically generates URLs for the objects. You can use the URLs to access the objects. If you want to access the objects by using custom domain names, map the custom domain names to the buckets in which the objects are stored and add Cname records for the custom domain names. For more information, see Map custom domain names.

Reference

PutCname