Problem description
The XML body of the PutBucketTransferAcceleration request is invalid. The <TransferAccelerationConfiguration> element accepts exactly one <Enabled> child element, but the request contains duplicates.
Causes
The <Enabled> element appears more than once in the <TransferAccelerationConfiguration> XML body. OSS returns the following error message when it detects the duplicate element:
Xml element repeated: EnabledCheck the ErrorMessage and ErrorDetail fields in the error response to confirm the cause.
Examples
The following request fails because it includes two <Enabled> elements:
PUT /?transferAcceleration HTTP/1.1
Date: GMT Date
Content-Length: ContentLength
Content-Type: application/xml
Host: BucketName.oss.aliyuncs.com
Authorization: SignatureValue
<TransferAccelerationConfiguration>
<Enabled>true</Enabled>
<Enabled>false</Enabled>
</TransferAccelerationConfiguration>Solutions
Modify the XML request body based on the ErrorMessage and ErrorDetail response parameters. Remove the duplicate <Enabled> element so that exactly one remains:
PUT /?transferAcceleration HTTP/1.1
Date: Fri , 30 Apr 2021 13:08:38 GMT
Content-Length: 443
Content-Type: application/xml
Host: examplebucket.oss.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
<TransferAccelerationConfiguration>
<Enabled>true</Enabled>
</TransferAccelerationConfiguration>References
该文章对您有帮助吗?