All Products
Search
Document Center

Object Storage Service:0040-00000217

Last Updated:Jul 21, 2023

Problem description

The format of the rotate action parameter is invalid.

Causes

The rotate parameter is set to a non-number value or a number outside the value range.

Examples

GET /example_image?x-oss-process=image/rotate,abc HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml

The error is returned for the preceding request because abc is not a valid value of the rotate action parameter.

Solutions

GET /example_image?x-oss-process=image/rotate,90 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: image/jpeg

Specify a valid value for the rotate action parameter.

For more information, see Rotate.

Examples

GET /example_image?x-oss-process=image/rotate,400 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xml

The error is returned for the preceding request because 400 is outside the value range of the rotate action parameter.

Solutions

GET /example_image?x-oss-process=image/rotate,90 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: image/jpeg

Specify a valid value for the rotate action parameter.

For more information, see Rotate.

References

Rotate