Problem description
The XML body of the Amazon S3-compatible RestoreObject request is empty.
Causes
You initiated an Amazon S3-compatible RestoreObject request, but the XML body is empty.
Examples
In the following Amazon S3-compatible RestoreObject request, the XML body is empty. As a result, an error is reported.
POST /coldarchiveobject?restore HTTP/1.1
Host: cold-archive-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: AWS qn6q**************:77Dv****************
Date: Tue, 21 Apr 2020 11:09:19 GMT
Solutions
Make sure that the Amazon S3-compatible RestoreObject request that you want to initiate contains a valid XML body.
POST /coldarchiveobject?restore HTTP/1.1
Host: cold-archive-bucket.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS qn6q**************:77Dv****************
Date: Tue, 21 Apr 2020 11:09:19 GMT
<RestoreRequest>
<Days>2</Days>
</RestoreRequest>
You can also use Amazon S3-compatible methods to initiate SDK requests. For more information, see Use Amazon S3 SDKs to access OSS.