throw new KafkaJSError('The producer is disconnected')
^
KafkaJSError: The producer is disconnected
at validateConnectionStatus (/home/xen/Desktop/code/dist-tx-activity/node_modules/kafkajs/src/producer/messageProducer.js:31:15)
at sendBatch (/home/xen/Desktop/code/dist-tx-activity/node_modules/kafkajs/src/producer/messageProducer.js:82:5)
at Object.send (/home/xen/Desktop/code/dist-tx-activity/node_modules/kafkajs/src/producer/messageProducer.js:120:12)
at KafkaTransport.logToKafka (/home/xen/Desktop/code/dist-tx-activity/node_modules/winston-logger-kafka/lib/logger.js:133:35)
at KafkaTransport.log (/home/xen/Desktop/code/dist-tx-activity/node_modules/winston-logger-kafka/lib/logger.js:139:14)
at KafkaTransport._write (/home/xen/Desktop/code/dist-tx-activity/node_modules/winston-transport/modern.js:82:19)
at doWrite (/home/xen/Desktop/code/dist-tx-activity/node_modules/readable-stream/lib/_stream_writable.js:390:139)
at writeOrBuffer (/home/xen/Desktop/code/dist-tx-activity/node_modules/readable-stream/lib/_stream_writable.js:381:5)
at KafkaTransport.Writable.write (/home/xen/Desktop/code/dist-tx-activity/node_modules/readable-stream/lib/_stream_writable.js:302:11)
at DerivedLogger.ondata (/home/xen/Desktop/code/dist-tx-activity/node_modules/readable-stream/lib/_stream_readable.js:629:20) {
retriable: true,
helpUrl: undefined
}
The error seems to be an initialization issue in logger.js inside the construcotor of KafkaTransport
Stack Trace for reference:
The error seems to be an initialization issue in
logger.js
inside the construcotor of KafkaTransport