All Products
Search
Document Center

Object Storage Service:0002-00000236

Last Updated:Aug 21, 2024

Problem Description

The time when a request is initiated to access OSS objects by using a signed URL that contains a V4 signature is not within the validity period of the URL.

Cause

The time when a request is initiated to access OSS objects by using a signed URL that contains a V4 signature is later than the end time of the validity period of the signed URL.

Examples

The start time of the validity period of the signed URL specified by x-oss-date is 20231220T083018Z. The validity period of the signed URL specified by x-oss-expires is 86,400 seconds (one day). As a result, the time when a request is initiated to access OSS objects by using a signed URL that contains a V4 signature cannot be later than 20231221T083018Z. However, the actual time when the request is initiated is 20231222T083018Z.

GET /oss.jpg?x-oss-additional-headers=host&x-oss-credential=accesskeyid%2F20231203%2Fcn-hangzhou%2Foss%2Faliyun_v4_request&x-oss-date=20231220T083018Z&x-oss-expires=86400&x-oss-signature=2c6****&x-oss-signature-version=OSS4-HMAC-SHA256
Host: oss-example.oss-cn-hangzhou.aliyuncs.com

Solutions

Make sure that the time when a request is initiated to access OSS objects by using a signed URL that contains a V4 signature is within the validity period of the signed URL.

References

Include a V4 signature in a URL (recommended)