All Products
Search
Document Center

Object Storage Service:0002-00000116

Last Updated:Jul 21, 2023

Problem description

The x-oss-access-key-id field in the request is left empty.

Causes

You initiated a request that uses a V2 signature in the URL parameter. However, the x-oss-access-key-id field in the request is left empty.

Examples

You initiated a request that uses a V2 signature. However, the x-oss-access-key-id field in the request is left empty.

GET /oss.jpg?x-oss-signature-verion=OSS2&x-oss-access-key-id=&x-oss-expires=1141889120&x-oss-signature=a8***I0= HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2022 08:48:18 GMT

The value of the x-oss-access-key-id field is the AccessKey ID that is used to calculate the signature.

Solutions

When you initiate a request that includes the V2 signature in the URL, make sure that the following fields are included in the request: x-oss-signature-verion, x-oss-access-key-id, x-oss-signature-verion, and x-oss-signature. Example:

GET /oss.jpg?x-oss-signature-verion=OSS2&x-oss-access-key-id=nz2pc56s936****&x-oss-expires=1141889120&x-oss-signature=a8***I0= HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2022 08:48:18 GMT

For more information, see Add signatures to URLs.

Note

We recommend that you use Alibaba Cloud SDKs to initiate requests. Alibaba Cloud SDKs automatically generate signatures for the requests. For more information, see Overview.