You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This results on this error when I run the example provided on the readme.
/Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:385
if (typeof value !== 'string') value = value.toString();
^
TypeError: Cannot read property 'toString' of undefined
at encodeMessage (/Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:385:57)
at /Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:358:19
at Array.forEach (native)
at encodeMessageSet (/Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:357:16)
at /Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:345:30
at Array.forEach (native)
at /Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:344:14
at Array.forEach (native)
at _encodeProduceRequest (/Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:338:12)
at /Users/cantidio/Projects/node-kafka-rx/node_modules/kafka-node/lib/protocol/protocol.js:326:16
When I fixed this check, everything works as expected.
The text was updated successfully, but these errors were encountered:
cantidio
pushed a commit
to cantidio/kafka-node
that referenced
this issue
Apr 29, 2016
It seems the value is undefined and is not being catched by the code before it, which checks for null only.
This results on this error when I run the example provided on the readme.
When I fixed this check, everything works as expected.
The text was updated successfully, but these errors were encountered: