Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create consumer using REST APIs not working #1205

Open
matayal opened this issue Apr 6, 2023 · 1 comment
Open

Create consumer using REST APIs not working #1205

matayal opened this issue Apr 6, 2023 · 1 comment

Comments

@matayal
Copy link

matayal commented Apr 6, 2023

I’m a beginner in the confluent Kafka cloud and trying to achieve the functionality of consuming messages using REST APIs in the confluent Kafka cloud.

I am not able to create consumer even though I referenced the Confluent Kafka documentation(https://docs.confluent.io/platform/current/kafka-rest/api.html#consumers).
Here are the possible commands that I tried:

  1. Request:
    curl -X POST -H "Content-Type: application/vnd.api+json"
    -H "Authorization: Basic XXXXX"
    "https://pkc-ymrq7.us-east-2.aws.confluent.cloud:443/kafka/v3/clusters/YYYY/consumers"
    --data '{ "name": "data", "format": "json", "auto.offset.reset": "earliest" }'
    Response:
    {"error_code":404,"message":"HTTP 404 Not Found"}%

  2. Request
    curl -X POST -H "Content-Type: application/vnd.api+json"
    -H "Authorization: Basic XXXXXX"
    -d '{"data":{"attributes":{"name":"my-consumer-group"}}}'
    "https://pkc-ymrq7.us-east-2.aws.confluent.cloud:443/kafka/v3/clusters/lkc-097n86/consumer-groups"
    Response:
    {"error_code":405,"message":"HTTP 405 Method Not Allowed"}%

@meyrelles
Copy link

Hi, same issue. In version 2 everything works but in V3 we have the option to GET parameters and not to create consumers-group and consumers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants