OSS rejected your request because the AccessKeyId field in the Authorization request header contains an invalid value. This error applies to requests using the V2 signature method.
Problem description
The value of the AccessKeyId field in the Authorization request header is invalid.
Causes
You initiated a request that used the V2 signature, but the value of the AccessKeyId field in the Authorization request header is invalid.
Examples
The following request uses the V2 signature, but the AccessKeyId value contains \r, causing the error:
GET /oss.jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Tue, 20 Dec 2022 08:48:18 GMT
Authorization: OSS2 AccessKeyId:\r***xyz,AdditionalHeaders:host,Signature:n7I**I0=
The \r immediately after AccessKeyId: is a carriage return character. OSS treats this as an invalid value and returns error code 0002-00000107.
Solutions
Make sure that the value of the AccessKeyId field in the Authorization request header is valid.
该文章对您有帮助吗?