apache / apache/pulsar-client-node

Provide more info for the AuthenticationError

Open
#432 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
164
Forks
98
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the shown Node.js AuthenticationError and tracing where that error is created or surfaced in the client. Check how OAuth2 network failures, missing files, and other authentication causes are currently represented. Done means the error message provides useful, specific information about the underlying cause.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js
Domain
authentication
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.