Kafka REST proxy endpoint is corrupting and wrongly parsing data
Hello Team,
I recently activated REST proxy endpoint for HdInsight kafka. The endpoint is used to produce data to a topic, and upon consuming from the topic I observed that the data is wrongly encoded and parsed. If I try to produce data from the client using kafka console producer, the data is parsed and consumed with no issues.
My Kafka cluster version is 5.1, and below are the screenshots from the producer and consumer.
Case 1 ( using Content-type as "application/json")
Producer
Consumer
Case 2 ( using Content-type as "application/vnd.kafka.json.v2+json")
Producer
Consumer
Case 3 (Using Kafka console producer from terminal)
Producer
Consumer
Please advise on possible solution.
Thank you.