0002-00000503
Updated at:
Problem description
The request is missing a valid date header for signature authentication.
Causes
The request header is missing a valid x-oss-date header or Date header.
Example problem
The request includes a signature in the Authorization header but is missing the Date or x-oss-date header.
GET /oss.jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization:OSS LTAI****************:UNQD*************************
Solutions
Use one of the following methods to add a valid date header for signature authentication to the request:
-
Add the
Datefield to the request.GET /oss.jpg HTTP/1.1 Host: oss-example.oss-cn-hangzhou.aliyuncs.com Authorization:OSS LTAI****************:UNQD************************* Date: Tue, 20 Dec 2022 08:48:18 GMT -
Add the
x-oss-dateheader to the request.GET /oss.jpg HTTP/1.1 Host: oss-example.oss-cn-hangzhou.aliyuncs.com Authorization:OSS LTAI****************:UNQD************************* x-oss-date: 20221220T084818Z
Note
You can use an SDK to initiate requests that use a V4 signature. For more information, see Overview of initiating requests using Alibaba Cloud SDKs.
References
-
If you want to implement the V4 signature yourself, see Implement V4 signatures using the Python SDK.
-
If you want to implement the V1 signature logic yourself, see Overview.
Is this page helpful?