Closed CesarPantoja closed 5 years ago
Hi,
As far as I can see, I think you need to send the JSON serialized object to the topic, not the object:
await groups_topic.send(value=Group(pubKeyHashes=vout['scriptPubKeyAddresses']))
becomes await groups_topic.send(value=Group(pubKeyHashes=vout['scriptPubKeyAddresses']).to_representation())
Thanks, I solved it by adding the 'json' serialiser to the model, but I guess your solution would work too as there would be no need to serialise/deserialise.
faust v1.6.0
Checklist
master
branch of Faust.Steps to reproduce
I'm trying to run an application that reads from a topic, does some processing, and writes back to another topic. The code is the following:
Expected behaviour
The app should write to the
groups_topic
topicActual behaviour
Instead, I get a
TypeError("Not supported type for value: <class 'dict'>")
error.Versions
3.7.3
1.6.0
5.1.8-arch1-1-ARCH #1 SMP PREEMPT Sun Jun 9 20:28:28 UTC 2019 x86_64 GNU/Linux
confluent-community-2.12
Any help is appreciated! Thanks!