DEV Community

Cover image for Building a real-time data streaming app with Apache Kafka

Building a real-time data streaming app with Apache Kafka

Brian Neville-O'Neill on November 05, 2019

Written by Alexander Nnakwue✏️ Introduction Most large tech companies get data from their users in various ways, and most of the time, ...
Collapse
 
arcticwind9653 profile image
arcticwind9653

Hi, thanks for the tutorial.
I tried following the steps but I am getting the following error when running ./start.sh

(node:10533) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'length' of undefined
at /mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/kafka-node/lib/protocol/protocol.js:483:27
at Array.forEach ()
at _encodeMetadataRequest (/mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/kafka-node/lib/protocol/protocol.js:482:10)
at Object.encodeMetadataV1Request as encoder
at /mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/kafka-node/lib/kafkaClient.js:912:41
at /mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/async/dist/async.js:3880:24
at replenish (/mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/async/dist/async.js:1011:17)
at /mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/async/dist/async.js:1016:9
at eachOfLimit (/mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/async/dist/async.js:1041:24)
at /mnt/c/Users/thomastai/Projects/kafka_producer_consumer_tutorial/node_modules/async/dist/async.js:1046:16
(node:10533) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:10533) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Collapse
 
firebase007 profile image
Alexander Nnakwue

Hello there, I can't seem to reproduce same error. Can you please have a look at the GitHub repo where this project is hosted and compare with what you have done.

Also, make sure everything is properly setup on your end.

Thanks for checking it out and do let me know if you are able to get it up and running. I'm here to assist in anyway I can...

Collapse
 
wakeupmh profile image
Marcos Henrique

Thanks for this

Collapse
 
firebase007 profile image
Alexander Nnakwue

You are very much welcome Marcos👍

Collapse
 
ilyessebdioui profile image
ilyessebdioui • Edited

hi i have the same problem if you guys found the solution i would greatly appreciate it sharing it with me