All Products
Search
Document Center

Object Storage Service:0016-00000706

Last Updated:Apr 29, 2024

Problem description

The XML structure in the RestoreObject request is invalid.

Causes

You initiated a RestoreObject request, but the XML structure of the request body is invalid.

Examples

The </RestoreRequest> tag is missing at the end of the XML structure in the following request body, and the XML structure is not valid.

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
<RestoreRequest>
  <Days>2</Days>

Solutions

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

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>

References

RestoreObject