0040-00000371
Updated at:
Problem description
When you use an earlier version of the image service to add a watermark to an image, the specified watermark parameters are in an invalid format.
Cause
The watermark parameters are not in the &<key>=<value> format. In this format, & links parameters, <key> is the parameter name, and <value> is the parameter value.
Examples
GET /example_image@watermark=&object=cGFuZGEucG5n&y=50 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlIn the preceding request, the watermark parameter is missing a <value>. This causes the error.
GET /example_image@watermark=1&object=cGFuZGEucG5n&y50 HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlIn the preceding request, the y50 parameter is missing an = sign. This causes the error.
GET /example_image@watermark=1&object=cGFuZGEucG5n&y=zero HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlIn the preceding request, the value zero for the y parameter does not meet the data type requirement. This causes the error.
Solution
Specify the image watermark parameters in the request string in the required format.
References
Is this page helpful?