Issue 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 uses an Amazon S3-compatible signature, but the difference between the time specified in the time parameter in the signed request and the time when the server receives the signed request is too large. The time parameter in the request is included in the Date
request header or the x-amz-date
field.
Examples
Sample requests:
GET /test.txt?AWSAccessKeyId=LTAI****************&Expires=1141889120&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv**** HTTP/1.0
Date: Tue, 20 Dec 2020 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
x-oss-s3-compat: true
If the server receives the signed request in 2022, the preceding error is returned. The error message is returned because the difference between the time specified in the Date
request header in the signed request and the time when the server receives the signed request is too large.
Solutions
Make sure that you specify valid values for the Date
request header or the x-amz-date
field in the request.
References
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.
We recommend that you use Amazon S3 SDKs to initiate the request. For more information, see Use Amazon S3 SDKs to access OSS.