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: trueThe query string uses three parameters for authentication:
| Parameter | Description |
|---|---|
AWSAccessKeyId | Your access key ID |
Expires | Unix timestamp after which the request is no longer valid |
Signature | HMAC 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: trueTo avoid signature errors, use Amazon S3 SDKs to generate and sign requests. For setup instructions, see Use Amazon S3 SDKs to access OSS.
该文章对您有帮助吗?