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

0002-00000030

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

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

问题描述

签名算法字段取值非法。

问题原因

请求 URL 中的 X-Tos-Algorithm 参数或表单中的 x-tos-algorithm 元素,取值非 TOS4-HMAC-SHA256

问题示例

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

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

上述请求中 X-Tos-Algorithm 参数取值为 HMAC-SHA256,为非法值。

解决方案

确保请求 URL 中的 X-Tos-Algorithm 参数或表单中的 x-tos-algorithm 元素取值为 TOS4-HMAC-SHA256