-
Notifications
You must be signed in to change notification settings - Fork 847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to decode AVRO message: cannot decode binary record #1917
Comments
Test case: benthos-1917.tgz Please make sure you have plumber and Docker Compose installed.
|
Hey @robinhuiser, there's a bit more info about avro-json versus actual json here: https://www.benthos.dev/docs/components/processors/schema_registry_decode#avro-json-format, we've expanded the |
Hi @Jeffail - thanks for the quick follow up! I will check with the cloud team in case we can leverage the Confluent Schema Registry in production so I can use the There is a bug mentioned in the processor - from what I understand this applies to |
It should work, yeah. I'm only aware of this inconsistency in Goavro when decoding binary avro with logical types, which applies to |
I got it to work - thanks for the support @Jeffail @mihaitodor . Silly question - how do I enable binary encoding for this processor (as this was an option for the |
Not sure I get the question @robinhuiser, but there's a matching |
Given the Avro schema
schema.avsc
:and the
benthos_config
:and consuming the topic using
plumber
:an error is printed by
plumber
whenBILLNUMBER_
has a string value assigned:Commenting out the line in Benthos config
root.BILLNUMBER_ = this.index(1)
(hence the value is nownull
) results into a valid Avro encoded message:It seems there could be a bug in Benthos (or dependent library handling Avro) when:
The text was updated successfully, but these errors were encountered: