Hi @Rameshreddypediatrix , I have analyzed logs based on your clientId, and discovered wrong request body. But I wasn’t able to reproduce the “Amazon S3 Exception” - this could be temporary issue. I also noticed that you probably use SDK for Node.js. Here is example of code that works and send right options:
"use strict";
global.comparison_cloud = require("groupdocs-comparison-cloud");
global.fs = require("fs");
global.serializer_1 = require("groupdocs-comparison-cloud/lib/serializer");
//// ***********************************************************
//// GroupDocs.Comparison Cloud API Examples
//// ***********************************************************
//TODO: Get your clientId and clientSecret at https://dashboard.groupdocs.cloud (free registration is required).
global.clientId = "xxxx-xxxx-xxxx-xxxx";
global.clientSecret = "xxxxxxxxxxxxxxxx";
global.myStorage = "First Storage";
const config = new comparison_cloud.Configuration(clientId, clientSecret);
config.apiBaseUrl = "https://api.groupdocs.cloud";
// construct CompareApi
global.compareApi = comparison_cloud.CompareApi.fromConfig(config);
// construct ReviewApi
global.reviewApi = comparison_cloud.ReviewApi.fromConfig(config);
// construct PreviewApi
global.previewApi = comparison_cloud.PreviewApi.fromConfig(config);
// construct InfoApi
global.infoApi = comparison_cloud.InfoApi.fromConfig(config);
// construct FileApi
global.fileApi = comparison_cloud.FileApi.fromConfig(config);
// construct StorageApi
global.storageApi = comparison_cloud.StorageApi.fromConfig(config);
// construct LicenseApi
global.licenseApi = comparison_cloud.LicenseApi.fromConfig(config);
async function examples() {
try {
let source = new comparison_cloud.FileInfo();
source.filePath = "Niva Travel_.pdf";
let target = new comparison_cloud.FileInfo();
target.filePath = "niva-legend-3dv-tth.pdf";
let options = new comparison_cloud.ComparisonOptions();
options.sourceFile = source;
options.targetFiles = [target];
options.outputPath = "result.pdf";
let request = new comparison_cloud.ComparisonsRequest(options);
let response = await compareApi.comparisons(request);
console.log("Output file link: " + response.href);
} catch (error) {
console.log(error.message);
}
}
examples();
You can fine more node.js examples here: GitHub - groupdocs-comparison-cloud/groupdocs-comparison-cloud-node-samples: GroupDocs.Comparison Cloud SDK for Node.js examples, plugins and showcase projects
Also, here is right example of comparison options, for request body, for reference:
{
"SourceFile": {
"FilePath": "Niva Travel_.pdf"
},
"TargetFiles": [
{
"FilePath": "niva-legend-3dv-tth.pdf"
}
],
"OutputPath": "compare_output.pdf"
}
These options are different from what I see in your requests:
{"comparisonOptions":{"SourceFile":{"FilePath":".\\admitnote1.pdf","VersionId":null,"StorageName":null,"Password":null},"TargetFiles":[{"FilePath":".\\Admitnote2.pdf","VersionId":null,"StorageName":null,"Password":null}],"Settings":null,"ChangeType":"None","OutputPath":".\\result.pdf"}}
There is “comparisonOptions” root element that is wrong.
If you have more questions, please feel free to ask!