Can not convert docx to pdf using the python example?

Do you want to: Suggest a feature / Report a bug / Ask a how-to question
For feature suggestions, describe the result you would like to achieve in detail.
For bug reports, provide the steps to reproduce and if possible a minimal demo of the problem.
Document Server version:
Type of installation of the Document Server (docker, deb/rpm, exe, please point us to the installation guide that you used as well):
OS:
Browser version:
Additional information:
Any relevant details about the situation. If you’ve modified configuration files or are using a proxy server that might affect the situation, please mention it. You can also attach images and videofile to the post (or to place them to external storage)

I am testing out onlyoffice apis to be able to use it in our backend. I am using the python example in https://api.onlyoffice.com/editors/example/python. I managed to run the application. I can edit and upload files. But, I cannot convert docx file to other formats like pdf. When I make the request curl -X POST -F filename=@new.docx http://localhost/convert, I get error ‘utf-8’ codec can’t decode byte 0x88 in position 174: invalid start byte. The docx file is fine but I get the error.