All Products
Search
Document Center

Object Storage Service:0016-00000404

Last Updated:Apr 29, 2024

Problem description

The object specified in the request cannot be read.

Causes

The object to be read is an Archive object, which cannot be read due to one of the following causes:

  • You do not call the RestoreObject operation to restore the object. For example, you do not initiate a RestoreObject request. The RestoreObject request that you initiated timed out. The RestoreObject request was initiated but the object is still being restored.

  • You do not enable real-time access of Archive objects for the bucket in which the object is stored. If you do not enable real-time access of Archive objects for the bucket, you must perform the RestoreObject operation to restore the object.

Examples

In this example, the oss.jpg object in the following request is of the Archive storage class and cannot be read.

GET /oss.jpg HTTP/1.1
Host: oss-archive-example.oss-cn-hangzhou.aliyuncs.com
Date: Sat, 15 Apr 2017 09:38:30 GMT
Authorization: OSS qn6q**************:77Dv****************

Solutions

You can use one of the following methods to resolve the issue:

  1. Restore the object:

    1. Call the RestoreObject operation to restore the object and make sure the object is restored.

      The expiry-date field in the x-oss-restore request header specifies the validity period in which the object remains in the restored state.

      After the object is restored, the following response is returned:

      HTTP/1.1 200 OK
      x-oss-request-id: 58F723829F29F18D7F00*****
      x-oss-object-type: Normal
      x-oss-restore: ongoing-request="false", expiry-date="Sun, 16 Apr 2017 08:12:33 GMT"
      Date: Sat, 15 Apr 2017 09:38:30 GMT
      Last-Modified: Sat, 15 Apr 2017 06:07:48 GMT
      ETag: "5B3C1A2E0763E1B002CC607C*****"
      Content-Type: image/jpg
      Content-Length: 344606
      Server: AliyunOSS
      [354606 bytes of object data]
    2. Initiate a GET request before the validity period ends.

  2. Enable real-time access of Archive objects: enable real-time access of Archive objects for the bucket in which the object is stored. After real-time access of Archive objects is enabled, all Archive objects in the bucket can be read without the need to call the RestoreObject operation. For more information, see Real-time access of Archive objects.

References