0040-00000363

Updated at:

Problem description

When you use an earlier version of Image Service to add a watermark to an image, an error is returned indicating that the y parameter is invalid.

Cause

The value of the y parameter is outside the valid range of 0 to 4096.

Problem examples

GET /example_image@watermark=1&object=cGFuZGEucG5n&y=5000 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 occurs because the value specified in y=5000 is outside the valid range of 0 to 4096.

Solution

Specify the y parameter in the request string.

References