Compare Two Word Documents and Highlight Differences Error in cURL

Hi,

I’m benchmarking a few comparison APIs and simply trying to call a basic comparison with the swagger after having uploaded my two word files to the storage area.

I POST the following body to https://api.groupdocs.cloud/v2.0/comparison/comparisons but only seem to get an error:

Query:
{
“SourceFile”: {
“FilePath”: “nt1.docx”
},
“TargetFiles”: [
{
“FilePath”: “nt2.docx”
}
],
“OutputPath”: “nt-result.docx”
}

Response:
{
“error”: {
“code”: “error”,
“message”: “Error occurred in comparing Word documents”,
“description”: “Operation Failed.”,
“innerError”: {
“requestId”: null,
“date”: “2020-08-31T16:32:35.2554475Z”
}
}
}

Any clue on the error?

Thanks

@Bthms

We have tried to compare two word documents and highlight differences in cURL using GroupDocs.Comparison REST API and unable to reproduce the issue. Please share your sample documents here, we will investigate the issue and will share our findings with you.

Compare Two Word Documents and Highlight Differences Online

curl -X POST "https://api.groupdocs.cloud/v2.0/comparison/comparisons" 
-H "accept: application/json" 
-H "authorization: Bearer [Access_Token]" 
-H "Content-Type: application/json" 
-H "x-aspose-client: Containerize.Swagger" 
-d "{ "SourceFile": { "FilePath": "source_files/source.docx" }, "TargetFiles": [ { "FilePath": "target_files/target.docx" } ], "OutputPath": "compare_result.docx"}"

Response:
{ "href": "https://api.groupdocs.cloud/v2.0/comparison/storage/file/compare_result.docx", "rel": "compare_result.docx", "type": "file", "title": "compare_result.docx" }