Files
doc-exports/docs/dataartsstudio/umn/dataartsstudio_03_0623.html
chenxiaoxiong f9e2808b7c DataArts UMN 20250810 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
Co-committed-by: chenxiaoxiong <chenxiaoxiong@huawei.com>
2025-09-02 10:44:13 +00:00

3.2 KiB

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" in DataArts Studio API Reference in DataArts Studio Usage Guide.

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.

<script language="JavaScript"> </script>