Converting DOCX to HTML in Aspose.Words Cloud SDK for Node.js fails 1/3 of the time

We are trying to shift to using Apsose.Words Cloud for converting .docx files to HTML. But about 1/3 of the requests fail with the following error. The error does not seem to be related to the .docx file in question - the same file can succeed sometimes and fail other times.

Error

Error: aborted
    at connResetException (node:internal/errors:705:14)
    at TLSSocket.socketCloseListener (node:_http_client:454:19)
    at TLSSocket.emit (node:events:525:35)
    at TLSSocket.emit (node:domain:489:12)
    at node:net:301:12
    at TCP.done (node:_tls_wrap:588:7)

Your logs at https://dashboard.aspose.cloud/billing/api-usage don’t show any failed requests.

Environment
Docker image: registry.access.redhat.com/ubi8/nodejs-16
Node.js version: v16.20.1

Code
The code we use to call your API is as per below, where the data is the file buffer.

const { WordsApi, ConvertDocumentRequest } = require('asposewordscloud');
const convertRequest = new ConvertDocumentRequest({
            format: 'html',
            document: data,
    });
const convertResult = await wordsApi.convertDocument(convertRequest);

Any ideas about what could be going wrong? Any other details you’d need to debug this?

@jussik

It seems there is some network error at your end. However, please also share your input file with us. We will test the scenario to replicate the problem on our end. And please ensure you are using the latest version of the Aspose.Words Cloud SDK for Node.js.