0012-00000301

Updated at:

Problem description

Versioning is not enabled for the bucket specified in the request.

Causes

A GetObject request is initiated to obtain the object of the version specified by the versionId parameter in the request. However, versioning is not enabled for the bucket in which the object is stored.

Examples

Versioning is not enabled for the bucket named oss-example. However, the versionId is specified in the request URL to obtain the object of the specified version.

GET /example?versionId=CAEQNhiBgMDJgZCA0BYiIDc4MGZjZGI2OTBjOTRmNTE5NmU5NmFhZjhjYmY0**** HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 09 Apr 2019 02:58:06 GMT
Authorization: OSS qn6q**************:77Dv****************

Solutions

Before you initiate a GetObject request to obtain the specified version of an object, you can call the GetBucketVersioning operation to query whether versioning is enabled for the bucket in which the object is stored.

References

GetObject