Provide more info for the AuthenticationError

Open
#432 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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.

Dominant language
C++
Stars
164
Forks
99
Avg merge
5d 18h
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apache/pulsar-client-node

All issues in apache/pulsar-client-node

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.