# Confluent CLI fails to post a message in avro schema

**URL:** <https://forum.confluent.io/t/confluent-cli-fails-to-post-a-message-in-avro-schema/11458>\
**Category:** Clients\
**Created:** [12 September 2024 21:48 UTC](https://forum.confluent.io/t/confluent-cli-fails-to-post-a-message-in-avro-schema/11458 "2024-09-12T21:48:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![goallu-deloitte](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/goallu-deloitte/32/3993_2.png) [@goallu-deloitte](https://forum.confluent.io/u/goallu-deloitte)\
**Post date:** [12 September 2024 21:48 UTC](https://forum.confluent.io/t/confluent-cli-fails-to-post-a-message-in-avro-schema/11458/1 "2024-09-12T21:48:06Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Cerchie](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.confluent.io/cerchie/32/3978_2.png) [@Cerchie](https://forum.confluent.io/u/Cerchie)\
**Post date:** [13 September 2024 21:37 UTC](https://forum.confluent.io/t/confluent-cli-fails-to-post-a-message-in-avro-schema/11458/2 "2024-09-13T21:37:32Z")

</div>

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