Closed albertoortiz closed 3 years ago
Hi,
I'm sorry to see you didn't get an answer on this. I am having the same problem myself, did you find a solution in the end ?
I ended using protobuf in the producer side. Seems like the avro schema is expected with the message, but I won't do that , another option is to use another lib that provide the schema, it's a similar dependency from crates.io, I don't want to spend more time testing another one.
Using protobuf is pretty simple.
I can't deserialize any message , always get an error, like
**GetAvroSchemaFromMap**
. Before was getting Magical header error, what I solved adding this to my message:let body_header = [[b'O', b'b', b'j', 1u8].to_vec(), body].concat();
The messages are fine using a Java avro deserializer, but not sure where is the problem with rust.schema:
reading:
I always get an error.
Thank you