apache / apache/pulsar-client-cpp
[Improve] Show Invalid Token Error Message
- 主要言語
- C++
- スター
- 71
- フォーク
- 90
- 平均マージ
- 2時間 33分
- マージ済み PR(30日)
- 3
説明
### 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!
コントリビューションガイド
調査の方向性
producer の作成時に無効なトークンを渡して issue を再現し、その後 C++ client のパーティションメタデータのエラーパスを追跡します。報告されたエラーが ConnectError ではなく InvalidToken を識別し、期待されるメッセージと一致すれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- cpp
- 領域
- api
- issue の種類
- バグ
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 45/100