Problem description
The value of the AWSAccessKeyId field in the request is empty.
Causes
The S3-compatible request sent to OSS does not include a value for the AWSAccessKeyId field.
Examples
The following request triggers this error because AWSAccessKeyId is blank:
GET /test.txt?AWSAccessKeyId=&Expires=1141889120Signature=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: trueSolutions
Include a valid access key ID in the AWSAccessKeyId field of your request:
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: trueTo avoid credential configuration errors, use Amazon S3 SDKs to initiate requests. For more information, see Use Amazon S3 SDKs to access OSS.
该文章对您有帮助吗?