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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot