You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using Kafka event trigger with Confluent Kafka. I am getting an error when I am trying to use KafkaSelfManagedEventModel to parse the events.
Kafka adds schema id as first five bytes to value for schema identification. KafkaSelfManagedEventModel tries to decode the bytes during parsing. It is not able to parse the first 5 bytes and giving me an error.
I am wondering whether we need to create a separate parser for schema aware kafka events or any other option already available in powertools.
Error: 39 validation errors for KafkaSelfManagedEventModel\nrecords -> test-topic-3 -> 0 -> value\n 'utf-8' codec can't decode byte 0x86 in position 3: invalid start byte (type=value_error.unicodedecode)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am using Kafka event trigger with Confluent Kafka. I am getting an error when I am trying to use KafkaSelfManagedEventModel to parse the events.
Kafka adds schema id as first five bytes to value for schema identification. KafkaSelfManagedEventModel tries to decode the bytes during parsing. It is not able to parse the first 5 bytes and giving me an error.
I am wondering whether we need to create a separate parser for schema aware kafka events or any other option already available in powertools.
Error: 39 validation errors for KafkaSelfManagedEventModel\nrecords -> test-topic-3 -> 0 -> value\n 'utf-8' codec can't decode byte 0x86 in position 3: invalid start byte (type=value_error.unicodedecode)
Beta Was this translation helpful? Give feedback.
All reactions