Hi, I’m trying to compare two word documents following the instructions from https://docs.aspose.cloud/words/compare/#how-to-compare-two-word-documents-with-curl-or-postman but the API response code is always “ErrorInvalidInputData” with message: “Can not deserialize string”.
The same message is given by cURL and Postman methods.
This is the cURL call:
curl -v "https://api.aspose.cloud/v4.0/words/online/put/compareDocument?destFileName=CompareDocumentOut.doc" \
-X PUT \
-H "Content-Type: multipart/form-data" \
-H "Authorization: Bearer ####################" \
-F Document="@compareTestDoc1.doc" \
-F ComparingDocument="@compareTestDoc2.doc"
Of course, I’m adding my local files and auth token.
The response is something like:
“Error”: {
“Code”: “ErrorInvalidInputData”,
“Message”: “Can not deserialize string 'PK\b��MVKUV��=\u000b_rels/.rels��MKA\f���C��l+�Hw{�7���Lvwh�L���DхR=�͛�����慥�;X5-�69�����e����#Ik�L>Sob�Rͷ��N�4)s��!I �����hd\\��5�O�3�ٹd�V
�o�����J���&”,
“Description”: “Operation Failed. The input data is not valid.”
},
“RequestId”: “Root=1-63ead03b-7f7ca04b31efc3c043a34e96”
}