0012-00000203
Updated at:
Problem description
The versionId specified in the x-oss-copy-source request header does not exist in the source bucket.
Causes
When you send a CopyObject request, OSS looks up the source object version using the versionId query string in the x-oss-copy-source header:
x-oss-copy-source: /SourceBucketName/SourceObjectName?versionId=<version-id>This error occurs when no version with that ID exists.
Examples
The following request fails because the versionId in x-oss-copy-source does not match any existing version of the source object:
PUT /DestObjectName HTTP/1.1
Host: DestBucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue
x-oss-copy-source: /SourceBucketName/SourceObjectName?versionId=CAETNRiBgICv8uaA0BYiIDliZDc3MTc1NjE5MjRkMDI4ZGU4MTZkYjY1ZDgy****Solutions
Before you initiate a CopyObject request, call ListObjectVersions (GetBucketVersions) to obtain the correct version ID for the source object. Use the retrieved version ID in your CopyObject request and retry.
References
Is this page helpful?