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
Incorrect — OSSAccessKeyId 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.comCorrect — OSSAccessKeyId 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.comSolutions
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.
该文章对您有帮助吗?