0040-00000381
Updated at:
Problem description
An invalid type parameter error occurs when you use an earlier version of Image Service (IMG) to add a text watermark to an image.
Cause
The text type obtained by Base64-decoding the `type` parameter is not a valid entry in the text encoding table.
Example Problems
GET /example_image@watermark=2&type=bm90IGV4aXQgdHlwZQ&text=SGVsbG8g5Zu-54mH5pyN5YqhIQ HTTP/1.1
Host: oss-example.oss-cn-hangzhou.aliyuncs.com
Date: Fri, 03 Feb 2023 03:41:49 GMT
Content-Type: application/xmlThis error occurs because the text type not exist type, which is the result of Base64-decoding the value in the parameter string type=bm90IGV4aXQgdHlwZQ from the request, is not found in the text type encoding mapping table.
Solution
Specify the type parameter in the request string.
References
Is this page helpful?