0004-00000502

Updated at:

Problem description

The value of the x-oss-traffic-limit parameter for single-connection bandwidth throttling is invalid.

Causes

The request contains an invalid value for the x-oss-traffic-limit parameter.

Example problem

Sample request:

GET /test.txt HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS LTAI****************:kZoY************************
x-oss-traffic-limit: abc

In the preceding example, the value of the x-oss-traffic-limit parameter is abc, which is invalid. As a result, the request is rejected.

Solutions

Ensure that the value of the x-oss-traffic-limit parameter is an integer from 819200 to 838860800. The unit is bit/s.

GET /test.txt HTTP/1.0
Date: Tue, 20 Dec 2022 08:48:18 GMT
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Authorization: OSS LTAI****************:kZoY************************
x-oss-traffic-limit: 819200

For more information about single-connection bandwidth throttling, see Single-connection bandwidth throttling.