All Products
Search
Document Center

Object Storage Service:0002-00000504

Last Updated:Apr 15, 2025

Problem description

The difference between the time when the server receives the signed request and the time when the client initiates the request is too large.

Causes

You initiated a request that includes the signature in the Authorization header, but the difference between the time when the server receives the signed request and the time when the client initiates the request is too large. The time parameter in the request may be the Date header or x-amz-date header.

Examples

Sample requests:

GET /test.txt HTTP/1.0
Date: Tue, 20 Dec 2020 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization:OSS LTAI****************:UNQD*************************

If the Object Storage Service (OSS) server receives the request in 2022, the preceding error is returned. The error is returned because the difference between the time when the server receives the signed request and the value of the Date header in the request is too large.

Solutions

Make sure that the value of the Date header or x-amz-date header in the request is valid.

Note

We recommend that you 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 more information, see Overview.