Problem description
The OSSAccessKeyId field in a signed URL contains an invalid value, causing the request to fail.
Causes
A signed URL is used to send a request. However, the value of the OSSAccessKeyId field in the signed URL is invalid.
Examples
The following request fails because the OSSAccessKeyId value (ab\tc) is invalid.
GET /test.txt?OSSAccessKeyId=ab\tc&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
Replace the malformed OSSAccessKeyId value with 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.comFor details on constructing a valid signed URL, see Add signatures to URLs.
Note 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 a list of supported SDKs, see Overview.