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

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

Open
SakshamPatro opened this issue May 12, 2023 · 0 comments
Open

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

SakshamPatro opened this issue May 12, 2023 · 0 comments

Comments

@SakshamPatro
Copy link

Questions?

  • I am trying to connect kafka-node with the Azure event hub connect string but the client connection is giving timeout, if remove timeout from config then it is not returning any response, Can anyone help to debug the same ?

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!

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