0002-00000306

更新时间:
复制 MD 格式

Problem description

The Signature parameter in the request is blank.

Causes

The request uses Amazon S3-compatible query-string authentication, but the Signature parameter has no value.

Examples

The following request triggers this error. The Signature parameter is present but blank:

GET /test.txt?AWSAccessKeyId=nz2p*****&Expires=1141889120&Signature= 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

The query string uses three parameters for authentication:

ParameterDescription
AWSAccessKeyIdYour access key ID
ExpiresUnix timestamp after which the request is no longer valid
SignatureHMAC signature computed from the request parameters and your secret key. If this value is blank, OSS rejects the request.

Solutions

Make sure the Signature parameter contains a valid value. The following shows a correctly signed request:

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

To avoid signature errors, use Amazon S3 SDKs to generate and sign requests. For setup instructions, see Use Amazon S3 SDKs to access OSS.