0012-00000301

更新时间:
复制 MD 格式

Problem description

Versioning is not enabled for the requested bucket.

Cause

You sent a GetObject request and specified a versionId to retrieve a specific version of an object. However, versioning is not enabled for the bucket that contains the object.

Example problem

Versioning is not enabled for the oss-example bucket. However, the request URL includes a versionId to retrieve a specific version of an object.

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****************

Solution

Before you retrieve a specific version of an object, call the GetBucketVersioning operation to check whether versioning is enabled for the bucket.

References

GetObject