CompareDocumentOnlineRequest returns 400 Bad Request

  await using var originalStream = new MemoryStream(Encoding.UTF8.GetBytes(originalHtml));
  await using var revisedStream = new MemoryStream(Encoding.UTF8.GetBytes(revisedHtml));

  var request = new CompareDocumentOnlineRequest
  {
      Document = originalStream,
      CompareData = new CompareData
      {
          Author = CompareAuthor,
          FileReference = new FileReference(revisedStream),
          ResultDocumentFormat = "html",
      },
      DestFileName = "compare-result.html",
  };

  var response = await wordsApi.CompareDocumentOnline(request);

Always returns unqualified error: 400

Online test version: Aspose.Words Cloud - API References
works fine with same input.
What do I do?

Execption was misleading. It should have been 401!

@D3F7B4A8-2470-4331-AD7C-E0FBFADEF6B5
please share your client id, and also the code you shared doesn’t contain wordsApi initialization so I’m not sure how did you initialize the api client

here you can find more about compare documents

the problem was incorrect client id.
the error 400 was misleading. expected: 401

@D3F7B4A8-2470-4331-AD7C-E0FBFADEF6B5
Please share client id, you tried that throws 400 instead of 401, to track that issue, as it might be something else we might miss