SOHU-Co / kafka-node

Node.js client for Apache Kafka 0.8 and later.
MIT License
2.66k stars 628 forks source link

kafka-node with the Azure event hub connect string not working #1472

Open SakshamPatro opened 1 year ago

SakshamPatro commented 1 year ago

Questions?

Sample Code

const client = new kafka.KafkaClient({ kafkaHost: 'sample.servicebus.windows.net:9093', sasl: { mechanism: 'plain', username: '$ConnectionString', password: 'Endpoint=sb://sample.servicebus.windows.net/;SharedAccessKeyName=db_update;SharedAccessKey=sample+AEhukWIQI=;EntityPath=test_hub' }, requestTimeout: false });

NOTE: I have altered the config but you can see the code above

Output

Request timed out after 30000ms

Thanks for your contribution!