Open chayuto opened 2 years ago
err := deserializer.DeserializeInto(topic, data, &out)
this works ok
Same issue for me, deserializer.Deserialize(topic, data)
gives panic: runtime error: invalid memory address or nil pointer dereference.
Hello @chayuto , thanks for reporting this.
Are you setting the MessageFactory function on the deserializer, similar to this example?
If it isn't set, it's nil by default and might be giving you this error. The method NewGenericDeserializer by itself doesn't set this method.
If it is not set, could you try once after setting the method?
@milindl
that's probably not set.
would prefer for lib to give err, rather than panic
deserializer.Deserialize(topic, data) gives panic: runtime error: invalid memory address or nil pointer dereference
Attempt to deserialise/unmarshall message
How to reproduce
setup code
console output
debug log lines before crash
underlying line that throw the panic github.com/confluentinc/confluent-kafka-go@v1.9.2/schemaregistry/serde/avro/avro_generic.go:112
Checklist
Please provide the following information:
[x] confluent-kafka-go and librdkafka version (
LibraryVersion()
): confluent-kafka-go@v1.9.2[x] Apache Kafka broker version:
[x] Client configuration:
ConfigMap{...}
conf["auto.offset.reset"] = "latest" conf["enable.auto.offset.store"] = false
[x] Operating system: MAC OS 12.3 (21E230)
[x] Provide client logs (with
"debug": ".."
as necessary)[ ] Provide broker log excerpts
[ ] Critical issue