0040-00000030
Updated at:
Problem description
The Content-Length header in the Image Processing (IMG) request is invalid.
Causes
The Content-Length header in the IMG request is a digit other than 0, which is invalid.
Examples
GET /example_image?x-oss-process=image/format,jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml
Content-Length: 123
An error is returned because the Content-Length header in the IMG request is a digit other than 0.
Solutions
GET /example_image?x-oss-process=image/format,jpg HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml
Remove the Content-Length header from the IMG request.
Is this page helpful?