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-04-29 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

Cause: 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: Add charset=utf8 to the value of content-type.

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

DataArts Factory FAQs

more