Unable to consume data from kafka properly

Found weird errors while consuming the data from the topic. Can anyone help me with this?

Caused by: org.apache.kafka.common.errors.SerializationException: Error deserializing Avro message for id 1
Caused by: org.apache.avro.AvroTypeException: Found string, expecting union

Thank you.