apache / apache/pulsar-client-cpp

[Improve] Show Invalid Token Error Message

Open
#53 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
71
Forks
90
Avg merge
2h 33m
Merged PRs (30d)
3

Description

### Search before asking

- [X] I searched in the [issues](https://github.com/apache/pulsar-client-cpp/issues) and found nothing similar.

### Version

2.9.3.11+

### Minimal reproduce step

pass an invalid token and try to create a producer

### What did you expect to see?

User error messages that specify the input token is invalid.

Error Checking/Getting Partition Metadata while creating producer on {topicName} -- InvalidToken

### What did you see instead?

Error Checking/Getting Partition Metadata while creating producer on {topicName} -- ConnectError

### Anything else?

Similar stack-overflow questions:

https://stackoverflow.com/questions/62227305/apache-pulsar-error-checking-getting-partition-metadata-while-subscribing

### Are you willing to submit a PR?

- [ ] I'm willing to submit a PR!

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by passing an invalid token while creating a producer, then trace the partition-metadata error path in the C++ client. Done means the reported error identifies InvalidToken instead of ConnectError, matching the expected message.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.