Open samithbharadwaj opened 3 years ago
Hi @samithbharadwaj thanks for the diff. What config are you using? And are you using JSON for your messages in Kafka?
Hi @rob3000
Are you referring to the Kafka Config? If yes, please find it below
{
name: 'HERO_SERVICE',
options: {
client: {
clientId: 'hero',
brokers: ['localhost:9092'],
},
consumer: {
groupId: 'hero-consumer',
},
producer: {
allowAutoTopicCreation: true,
},
},
},
Yes, I'm using JSON for my serialization and deserialization. I'm using Kafka for interservice communication between microservices.
PS: I'm sure there's a prettier/better way to do the serialization. This method would not hold up for circular JSON structures. But I'm just using this as a temporary fix. Will need to write a custom serializer very soon.
So most likely it looks like there could be an issue in the https://github.com/rob3000/nestjs-kafka/blob/master/src/serializer/kafka-request.serializer.ts
Hi! ๐
Firstly, thanks for your work on this project! ๐
Today I used patch-package to patch
@rob3000/nestjs-kafka@1.3.0
for the project I'm working on.Here is the diff that solved my problem:
This issue body was partially generated by patch-package.