All Products
Search
Document Center

Object Storage Service:0035-00000001

Last Updated:Apr 28, 2024

Problem description

The XML body of the PutBucketRequestPayment request is invalid.

Causes

You initiated a PutBucketRequestPayment request, but the XML body is invalid or the root node of the XML body is not RequestPaymentConfiguration.

Examples

In the following PutBucketRequestPayment request, the root node of the XML body is not RequestPaymentConfiguration. As a result, an error is reported.

PUT /?requestPayment HTTP/1.1
Date: Fri, 24 Feb 2017 03:15:40 GMT
Content-Length: 322
Content-Type: application/xml
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************

<?xml version="1.0" encoding="UTF-8"?>
<Payer>Requester</Payer>

Solutions

Make sure that the XML body of the PutBucketRequestPayment request is valid.

PUT /?requestPayment HTTP/1.1
Date: Fri, 24 Feb 2017 03:15:40 GMT
Content-Length: 322
Content-Type: application/xml
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************

<?xml version="1.0" encoding="UTF-8"?>
<RequestPaymentConfiguration>
  <Payer>Requester</Payer>
</RequestPaymentConfiguration>

References