0002-00000305

更新时间:
复制 MD 格式

Problem description

The Signature field is missing from a request sent to OSS using the Amazon S3-compatible API.

Causes

You initiate a request that is compatible with Amazon S3. However, the Signature field is missing in the request.

Examples

The following request is missing the Signature parameter:

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

Solutions

Include the Signature parameter in the query string with a valid value:

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 constructing signatures manually, use Amazon S3 SDKs to generate requests. For details, see Use Amazon S3 SDKs to access OSS.