We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When, by a misconfiguration, you try to instantiate a new Kafka({ brokers: [] })
new Kafka({ brokers: [] })
The error is not very easy to understand:
TypeError: Cannot read property 'split' of undefined
caused by https://github.com/tulios/kafkajs/blob/master/src/cluster/connectionBuilder.js#L24
we can easily check brokers.length before doing anything
brokers.length
The text was updated successfully, but these errors were encountered:
Proposal #458
Sorry, something went wrong.
Merge pull request #460 from capucho/adding-validation-to-connection-…
dc0a942
…builder Issue #454 proposal - Adding validation to connectionBuilder
Fixed in #460.
No branches or pull requests
When, by a misconfiguration, you try to instantiate a
new Kafka({ brokers: [] })
The error is not very easy to understand:
caused by https://github.com/tulios/kafkajs/blob/master/src/cluster/connectionBuilder.js#L24
we can easily check
brokers.length
before doing anythingThe text was updated successfully, but these errors were encountered: