Issue description
The AccessKeyId
field of the Credential
field in the Authorization
request header is invalid.
Causes
You initiated a request that uses the V4 signature, but the AccessKeyId
field of the Credential
field in the Authorization
request header is invalid.
Examples
You initiated a request that uses the V4 signature, but the AccessKeyId
field of the Credential
field in the Authorization
request header is invalid.
GET /oss.jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2022 08:48:18 GMT
Authorization: OSS4-HMAC-SHA256 Credential=\rLTAI********/20221220/us-east-1/oss/aliyun_v4_request,Signature=18**0a
x-oss-content-sha256: UNSIGNED-PAYLOAD
The AccessKeyId
field of the Credential
field in the Authorization
request header contains the invalid characters \r
.
Solutions
Make sure that the
AccessKeyId
field of theCredential
field in the Authorization request header is correctly specified.If you want to use Alibaba Cloud SDKs to initiate a request that uses the V4 signature, see Overview.