All Products
Search
Document Center

Object Storage Service:0016-00000708

Last Updated:Mar 20, 2026

Problem description

The Days parameter in the RestoreObject request XML body has an invalid value.

Causes

The Days parameter specifies the number of days required to restore an Archive object. It must be an integer between 1 and 7. Passing a non-integer value — such as a string — causes OSS to reject the request.

Examples

In the following request, Days is set to a, which is not a valid integer. OSS returns an error.

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

Solutions

Set Days to an integer between 1 and 7, then resend the request.

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