All Products
Search
Document Center

Object Storage Service:0012-00000102

Last Updated:Apr 29, 2024

Problem description

The value of the max-keys parameter in the ListObjectVersions(GetBucketVersions) request is invalid.

Causes

The value of the max-keys parameter is not within the valid range.

Examples

The value of the max-keys parameter is larger than 1,000 in the ListObjectVersions(GetBucketVersions) request.

GET /?versions&max-keys=2000 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 09 Apr 2019 07:27:48 GMT
Authorization: OSS qn6q**************:77Dv****************

Solutions

The max-keys parameter specifies the maximum number of objects to return. Set this parameter to a value within a range from 0 to 1000. The default value of this parameter is 100.

References

ListObjectVersions(GetBucketVersions)