The Node.js client throws an error when an authentication problem occurs:
node:internal/process/promises:391
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: Failed to create producer: AuthenticationError]
However, this error message lacks useful details. For example, it does not specify if the issue is related to the network connection to the issuer (for OAuth2), a file not being found, or another cause. It would be better to provide more specific information for this error.