You need to enable JavaScript to run this app.
导航

0002-00000031

最近更新时间2024.01.25 15:54:44

首次发布时间2024.01.05 16:32:10

问题描述

URL 参数 X-Tos-Expires 取值非法。

问题原因

URL 签名中的 X-Tos-Expires 参数取值非法。

问题示例

您使用基于 URL 签名的方式发起请求,但 URL 中 X-Tos-Expires 参数取值非法。

PUT https://bucketname.tos-cn-beijing.volces.com/object
?X-Tos-Algorithm=TOS4-HMAC-SHA256
&X-Tos-Credential=<access-key-id>/<YYYYMMDD>/<region>/tos/request
&X-Tos-Date=20130721T201207Z
&X-Tos-Expires=-1
&X-Tos-SignedHeaders=host
&X-Tos-Signature=<signature> 
&X-Tos-Security-Token=<security-token>

X-Tos-Expires 参数用于指定 URL 的有效时长,单位为秒,有效取值范围为 [1, 604800]。上述请求中该参数取值为 -1,为非法值。

解决方案

确保请求 URL 中的 X-Tos-Expires 参数取值在合法范围内。