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

0005-00000011

最近更新时间2024.01.05 16:32:13

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

问题描述

请求头域 Content-Length 取值非有效整数或不在合法范围内。

问题原因

用户请求携带的 Content-Length 头域取值不是有效的整数,或不在接口允许范围内。

问题示例

您发起绑定自定义域名请求,请求头域 Content-Length 取值为负数。

PUT /?customdomain HTTP/1.1
Host: bucketname.tos-cn-beijing.volces.com
Date: Fri, 30 Jul 2021 08:05:36 +0000
Authorization: authorization xxx
Content-Length: -1

{
   "CustomDomainRule": {
      "Domain": "example.com",
      "CertId": "certID"
   }
}

解决方案

检查请求头域 Content-Length 取值是否为整数且在有效的范围内。