0015-00000401

Updated at:

Problem description

The list-type parameter in your ListObjects request has an invalid value.

Causes

The list-type query parameter only accepts the value 2. Any other value triggers this error.

Examples

The following request fails because test is not a valid value for list-type:

GET /?list-type=test HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

Solutions

Choose one of the following based on which operation you want to use.

Use ListObjectsV2

Set list-type to 2:

GET /?list-type=2 HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

Use ListObjects

Remove the list-type parameter entirely. ListObjects does not accept this parameter:

GET / HTTP/1.1
Host: BucketName.oss-cn-hangzhou.aliyuncs.com
Date: GMT Date
Authorization: SignatureValue

References