0002-00000302
Issue description
The Expires field included in the request is left empty.
Causes
You initiated a request that is compatible with Amazon S3, but the Expires field is left empty.
Examples
You initiated a request that includes signature information in the URL parameter, but the Expires field is left empty.
GET /test.txt?AWSAccessKeyId=nz2p****&Expires=&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv**** HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
x-oss-s3-compat: true
The Expires field in the URL parameter is required and is used to specify the validity period of the signature. The value of the field must be a timestamp that follows the UNIX time format. It is the number of seconds that have elapsed since 00:00:00 Thursday, January 1, 1970. If the time when Object Storage Service (OSS) receives the request that contains the URL is later than the value of this field that is included in the signature, a request timeout error is returned. For example, the current time is 1141889060. To create a URL that is valid within 60 seconds, set this field to 1141889120.
Solutions
Make sure that the Expires field is included in the request and a valid value is specified for the field.
GET /test.txt?AWSAccessKeyId=nz2p****&Expires=1141889120&Signature=vjbyPxybdZaNmGa%2ByT272YEAiv**** HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
x-oss-s3-compat: true
We recommend that you use Amazon S3 SDKs to initiate the request. For more information, see Use Amazon S3 SDKs to access OSS.