All Products
Search
Document Center

Object Storage Service:0002-00000304

Last Updated:Jul 21, 2023

Issue description

The value of the AWSAccessKeyId field in the request is empty.

Cause

You initialize a request that is compatible with Amazon S3. However, the value of AWSAccessKeyId field in the request is empty.

Example

The following code provides an example:

GET /test.txt?AWSAccessKeyId=&Expires=1141889120Signature=vjbyPxybdZaNmGa%2ByT272YEAiv**** HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
x-oss-s3-compat: true

Solution

Make sure that the AWSAccessKeyId field is included in the request and a valid value is specified for the field.

GET /test.txt?AWSAccessKeyId=nz2p****&Expires=1141889120&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv**** HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
x-oss-s3-compat: true

We recommend that you use Amazon S3 SDKs to initiate the request. For more information, see Use Amazon S3 SDKs to access OSS.