apache / apache/pulsar-client-node
Issue with version 1.10 and onwards on windows
- 主要言語
- C++
- スター
- 164
- フォーク
- 98
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Hi!
I'm building an application using pulsar and everything works fine on the latest version on macos. After some trial and error on my windows pc. it seems there is an issue with version 1.10 and 1.11 on windows. if i change the version to 1.9 it works again.
I used slightly modified version of the example from readme to test this. Only difference is i added authentication, so it might just be a problem with that.
I get this error:
```
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Error: Failed to create producer: AuthenticationError]
```
Full code example:
```
const Pulsar = require('pulsar-client');
const DEV_DEFAULTS = {
serviceUrl: "SECRET",
type: "client_credentials",
issuer_url: "SECRET",
audience: "SECRET",
scope: "SECRET",
};
const clientConfig = {
name: "SECRET",
clientId: "SECRET",
clientSecret: "SECRET",
};
(async () => {
// Create a client
const client = new Pulsar.Client({
serviceUrl: DEV_DEFAULTS.serviceUrl,
authentication: new Pulsar.AuthenticationOauth2({
...DEV_DEFAULTS,
client_id: clientConfig.clientId,
client_secret: clientConfig.clientSecret,
})
});
// Create a producer
const producer = await client.createProducer({
topic: 'SECRET',
});
// Create a consumer
const consumer = await client.subscribe({
topic: 'SECRET',
subscription: 'SECRET'
});
// Send a message
producer.send({
data: Buffer.from("hello")
});
// Receive the message
const msg = await consumer.receive();
console.log(msg.getData().toString());
consumer.acknowledge(msg);
await producer.close();
await consumer.close();
await client.close();
})();
```
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
調査の方向性
まず、Windows で AuthenticationOauth2 を使用して README の例を実行し、バージョン 1.9、1.10、1.11 を比較します。createProducer の呼び出しと報告された AuthenticationError に焦点を当てます。影響を受けるバージョンで認証が失敗する理由を特定し、修正された動作で producer の作成が機能することを確認できれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, node.js
- 領域
- api, backend
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100