All Products
Search
Document Center

Object Storage Service:0040-00000217

Last Updated:Mar 20, 2026

Problem description

The rotate action parameter value is invalid.

Causes

The rotate parameter value is invalid for one of the following reasons:

  • The value is not a number (for example, abc).

  • The value is outside the valid range (for example, 400).

Examples

Case 1: Non-number value

The following request fails because abc is not a valid rotate parameter value:

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

Case 2: Out-of-range value

The following request fails because 400 is outside the valid range of the rotate parameter:

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

Solutions

Specify a valid value for the rotate parameter. The following request uses 90, which is a valid value:

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

For valid parameter values and the value range, see Rotate.

References

Rotate