0017-00000506
Updated at:
Problem description
The request body of the Image Processing (IMG) request is not empty.
Causes
You initiate an IMG request with a request body that is not empty.
Examples
For example, you initiate the following request:
GET /example.jpg?x-oss-process=image/resize,l_500,m_mfit HTTP/1.1
Host: oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com
Content-Type: text/plain
Content-Length: 4
date: Wed, 22 Feb 2023 09:41:58 GMT
Test
The preceding request contains the IMG parameter x-oss-process, which indicates that the request is an IMG request. Such a request cannot contain a request body. As a result, an error is reported.
Solutions
Make sure that the request body of the IMG request that you initiate is empty.
GET /example.jpg?x-oss-process=image/resize,l_500,m_mfit HTTP/1.1
Host: oss-console-img-demo-cn-hangzhou.oss-cn-hangzhou.aliyuncs.com
Content-Type: text/plain
Content-Length: 0
date: Wed, 22 Feb 2023 09:41:58 GMT
References
Is this page helpful?