Free Support Forum -

Aspose.HTML Cloud SDK for Node.js package cannot authenticate any requests


The asposehtmlcloud package does not seem to be usable because it is unable to complete the authentication flow to get a bearer token.

It appears this was broken in this commit

Strings here are immutable and concatenating strings does not maintain a reference to the component strings, which means the logic there does not work. Although this.accessToken is updated with the bearer token, this.defaultHeaders.Authorization is not updated because it has no reference to this.accessToken.

The impact of this is that all API requests are made with an Authorization header of Bearer undefined and therefore they return an error.


Thanks for your inquiry. We have logged a ticket HTMLCLOUD-1231 for further investigation and rectification. We will notify you as soon as it is resolved.


Thanks for your patience. Please note, your reported issue has fixed in Aspose.HTML Cloud SDK for Node.js. It should work now. Please feel free to contact us for any further assistance.