Confluent CLI fails to post a message in avro schema

Confluent kafka community edition is running on docker.
Installed CLI (latest version) in Linux. I am able to create a topic but can’t a message to the the topic.

When I run this command in CLI:

confluent kafka topic produce --bootstrap localhost:9092 --protocol PLAINTEXT --value-format avro --schema --schema-registry-endpoint localhost:8081

I get an error

Error: runtime error: invalid memory address or nil pointer dereference

Please assist.

Hey there! what’s the value you’re passing to --schema?