Help Center/ DataArts Studio/ FAQs/ DataArts Factory/ What Should I Do If Error Message "The request parameter invalid" Is Displayed When I Use Python to Call the API for Executing Scripts?
Updated on 2024-08-30 GMT+08:00

What Should I Do If Error Message "The request parameter invalid" Is Displayed When I Use Python to Call the API for Executing Scripts?

Symptom

Error message "The request parameter invalid" is displayed when Python is used to call the API for executing scripts.

Call the script execution API by following the instructions in Executing a Script.

View logs.

Error: Content type 'application/octet-stream' not supported

Possible Causes

The value of the content-type parameter is application/json.

content-type indicates the request body type or format. Its default value is application/json.

If the request body contains Chinese characters, use charset=utf8 to specify the Chinese character set.

Solution

Change the value of content-type.

After the value of content-type is changed, the API can be called successfully.