Problem description
When accessing OSS resources via a V4 signed URL, the request fails because the expiration time is invalid.
Causes
The x-oss-expires parameter value is outside the supported range of 1 second (minimum) to 604,800 seconds / 7 days (maximum).
Examples
The following request sets x-oss-expires to 691200 seconds (8 days), which exceeds the 7-day maximum:
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=691200&x-oss-signature=2c6****&x-oss-signature-version=OSS4-HMAC-SHA256
Host: oss-example.oss-cn-hangzhou.aliyuncs.comSolutions
Set x-oss-expires to a value between 1 and 604,800 (seconds). Values outside this range are rejected.
References
该文章对您有帮助吗?