Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KafkaJSConnectionClosedError: Closed connection #1711

Open
kante-srikanth opened this issue Aug 13, 2024 · 0 comments
Open

KafkaJSConnectionClosedError: Closed connection #1711

kante-srikanth opened this issue Aug 13, 2024 · 0 comments

Comments

@kante-srikanth
Copy link

kante-srikanth commented Aug 13, 2024

Describe the bug
Hi,

I am trying to use KafkaJS to produce some messages locally and consume them. With the given config in the documentation I can connect to the producer but when I am trying to send the message I am getting a KafkaNonJSRetriableError caused by KafkaJSConnectionClosedError before sending the message.

config

const kafka = new Kafka({clientId: 'client', brokers: brokers});
const producer = kafka.producer();
await producer.connect();
producer.send({topic: "TOPIC_NAME", messages: [{value: 'something', partition: 1}]})

Any help would be much-appreciated
version: 2.2.4

Note: I am trying this in Office NDS

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant