0035-00000002

更新时间:2024-04-29 02:40:01

问题描述

请求体XMLPayer节点值有误。

问题原因

您发起了PutBucketRequestPayment请求,但是请求体XML配置的Payer节点值不合法。

问题示例

请求体XML配置的Payer节点值为Other,节点值不合法导致请求错误。

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>

解决方案

确保请求体XML配置的Payer节点取值正确。该节点用于指定Bucket付费类型。取值如下:

  • BucketOwner:由Bucket拥有者付费。

  • Requester:由请求者付费。

正确请求示例如下:

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>

相关文档

  • 本页导读 (1)
  • 问题描述
  • 问题原因
  • 问题示例
  • 解决方案
  • 相关文档
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等