0002-00000072

更新时间:
复制 MD 格式

Problem description

The OSSAccessKeyId query parameter is blank in the signed URL.

Causes

The signed URL was generated without populating the OSSAccessKeyId field. OSS requires this field to identify the AccessKey ID used to sign the request.

Examples

IncorrectOSSAccessKeyId is blank:

GET /test.txt?OSSAccessKeyId=&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

CorrectOSSAccessKeyId contains a valid AccessKey ID:

GET /test.txt?OSSAccessKeyId=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

Solutions

Set OSSAccessKeyId to a valid AccessKey ID before sending the request. For details on constructing signed URLs, see Add signatures to URLs.

Note To avoid signature errors caused by manually constructing signed URLs, use Alibaba Cloud SDKs, which generate signatures automatically. For more information, see Overview.