0035-00000002
Updated at:
Problem description
The value of the Payer parameter in the XML body of the PutBucketRequestPayment request is invalid.
Causes
You initiated a PutBucketRequestPayment request, but the value of the Payer parameter in the XML body is invalid.
Examples
In the following PutBucketRequestPayment request, the value of the Payer parameter in the XML body is Other. The value is invalid. 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"?>
<RequestPaymentConfiguration>
<Payer>Other</Payer>
</RequestPaymentConfiguration>
Solutions
Make sure that the value of the Payer parameter in the XML body is valid. This parameter specifies the payer of the request and traffic fees. Valid values:
-
BucketOwner: The bucket owner is charged for the request and traffic fees.
-
Requester: The requester is charged for the request and traffic fees.
The following sample code provides an example of a valid request:
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
Is this page helpful?