# Bug control-center download button events with avro key not deser

**URL:** <https://forum.confluent.io/t/bug-control-center-download-button-events-with-avro-key-not-deser/1785>\
**Category:** Graphical tools\
**Created:** [15 May 2021 15:28 UTC](https://forum.confluent.io/t/bug-control-center-download-button-events-with-avro-key-not-deser/1785 "2021-05-15T15:28:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![raphael\_r](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@raphael\_r](https://forum.confluent.io/u/raphael_r)\
**Post date:** [15 May 2021 15:28 UTC](https://forum.confluent.io/t/bug-control-center-download-button-events-with-avro-key-not-deser/1785/1 "2021-05-15T15:28:14Z")

</div>

With the image: confluentinc/cp-enterprise-control-center:6.1.0

when I click on the download button ( to download a message inside a topic )

the json file is correct except that the key ( a primitive avro key ) is not deser

`[{"topic":"aaaa","partition":2,"offset":0,"timestamp":1621091829948,"timestampType":"CREATE_TIME","headers":[],"key":"\u0000\u0000\u0000\u0000\u0002\u000ede3a3f5","value":{"event_timestamp":123442,"event_datetime":"18","event_id":"aaaaaaaaaa","product_id":356}}]`

in the UI of control-center the message key is well show ( deser )  
 ![Screenshot from 2021-05-15 17-27-12](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/1X/1cbac729b91fc9400a0d98c6b008bab0f061d082.png)

Key : de3a3f5

---

<div class="post-metadata">

**Author:** ![raphael\_r](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@raphael\_r](https://forum.confluent.io/u/raphael_r)\
**Post date:** [17 May 2021 06:17 UTC](https://forum.confluent.io/t/bug-control-center-download-button-events-with-avro-key-not-deser/1785/2 "2021-05-17T06:17:37Z")

</div>

So all avro primitives are not deser , if you open with google chrome , you will see that even in the UI the string is prefixed of unknow bytes.

control-center have exactly the same problem that AKHQ

> <https://github.com/tchiotludo/akhq/issues/700>
>
> with a primitive string avro schema for key 
> \`\`\`json
> {"type": "string"}
> \`\`\`
> …
> \*\*how to reproduce :\*\* 
> 
> \`\`\`yaml
> akhq:
> image: tchiotludo/akhq:0.17.0
> environment:
> AKHQ\_CONFIGURATION: |
> akhq:
> connections:
> docker-kafka-server:
> properties:
> bootstrap.servers: "kafka-broker:29092"
> schema-registry:
> url: "http://schema-registry:8081"
> ports:
> - 9023:8080
> - 9024:8081
> \`\`\`
> 
> 
> create a topic test\_topic
> 
> produce a key schema for this topic with the schema-registry : 
> 
> \`\`\`shell
> curl -X POST -H "Content-Type: application/vnd.schemaregistry.v1+json" \\
> --data '{"schema": "{\\"type\\": \\"string\\"}"}' \\
> http://localhost:8081/subjects/test\_topic-key/versions
> \`\`\`
> !\[Screenshot from 2021-05-14 19-15-39\](https://user-images.githubusercontent.com/10202690/118306021-16554a00-b4e9-11eb-99f9-2f293c2b0fa8.png)
> 
> produce an event in the topic with the key schema ( message value can be null )
> 
> !\[Screenshot from 2021-05-14 19-16-36\](https://user-images.githubusercontent.com/10202690/118306006-0f2e3c00-b4e9-11eb-8e7d-09763ccb72e7.png)
> 
> there is a warning for message using the avro primitive schema -\>
> 
> !\[Screenshot from 2021-05-14 19-16-46\](https://user-images.githubusercontent.com/10202690/118306039-1ce3c180-b4e9-11eb-8ba5-032c96447400.png)
> 
> \`\`\`
> class java.lang.String cannot be cast to class org.apache.avro.generic.GenericRecord (java.lang.String is in module java.base of loader 'bootstrap'; org.apache.avro.generic.GenericRecord is in unnamed module of loader 'app')
> \`\`\`

---

<div class="post-metadata">

**Author:** ![raphael\_r](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@raphael\_r](https://forum.confluent.io/u/raphael_r)\
**Post date:** [12 November 2021 11:08 UTC](https://forum.confluent.io/t/bug-control-center-download-button-events-with-avro-key-not-deser/1785/3 "2021-11-12T11:08:40Z")

</div>

bug still present in release 7.0.0 !!

seriously you do not use AVRO ???

control center →

![Screenshot from 2021-11-12 12-07-27](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/2X/e/e20d06429f2f03a3da6ff49e9cabe9ba674790cd.png)

AKHQ →

![Screenshot from 2021-11-12 12-07-35](https://us1.discourse-cdn.com/flex019/uploads/confluentcommunity/original/2X/0/0d920abc54bbcc7b4bbbecd652a6861075eb34e4.png)
