All Products
Search
Document Center

Object Storage Service:0002-00000072

Last Updated:Jul 21, 2023

Issue description

The OSSAccessKeyId field in the signed URL is left empty.

Causes

A signed URL is used to send a request, but the OSSAccessKeyId field in the URL parameter is left empty.

Examples

You initiated a request to include the signature in the URL parameter, but the OSSAccessKeyId field is left empty.

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

Solutions

Make sure that the URL of a request includes the OSSAccessKeyId field and that the OSSAccessKeyId field is correctly specified.

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

For more information, see Add signatures to URLs.

Note

We recommend that you use Alibaba Cloud SDKs to initiate requests. Alibaba Cloud SDKs automatically generate signatures for the requests without the need to manually calculate a signature. For more information, see Overview.