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

Getting Error "ECONNRESET at TLSWrap.onStreamRead" on producing message to event hub. #1473

Open
SakshamPatro opened this issue Jun 8, 2023 · 0 comments

Comments

@SakshamPatro
Copy link

Questions?

  • Is kafka-node package compatible with azure event-hub like rdkafka plugin ? The output error is not clear to specify the same.

Environment

  • Node version: 10
  • Kafka-node version: 5

// Sample Code
const client = new kafka.KafkaClient({
kafkaHost: 'talabatkafka.servicebus.windows.net:9093',
ssl:true,
sasl: {
mechanism: 'plain',
username: '$ConnectionString',
password: 'Endpoint'
},
sslOptions: {
rejectUnauthorized: false,
}
});
const producer = new kafka.Producer(client);
const payload = [{ topic: "test_hub", messages: "Test message", partition: 0}];
producer.send(payload, function(error, result) {

Output

{ Error: read ECONNRESET
at TLSWrap.onStreamRead (internal/stream_base_commons.js:111:27) errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' }

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