Skip to content

{"error_code":415,"message":"HTTP 415 Unsupported Media Type"} #129

@tanmay-lumiata

Description

@tanmay-lumiata

I downloaded the latest platform confluent-1.0.1. And was trying REST APIs. But I could only see GET APIs working. I am not able to send message to specific topic.

I am trying samples from this page http://docs.confluent.io/1.0.1/kafka-rest/kafka-rest/docs/intro.html#kafkarest-intro

Request
curl -X POST -H "Content-Type: application/vnd.kafka.json.v1+json" --data '{"records":[{"value":{"foo":"bar"}]}' "http://localhost:8082/topics/test1"

Response
{"error_code":415,"message":"HTTP 415 Unsupported Media Type"}

I have topic test1 created.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions