We're sorry GroupDocsCloud doesn't work properply without JavaScript enabled.

Free Support Forum - groupdocs.cloud

Compare Two Word Documents and Highlight Differences Error in cURL


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:

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

“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?



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"}"

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