You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/12/08 19:28:24 UTC

[GitHub] [camel-kafka-connector] nervgh opened a new issue #1296: How to capture HTTP response from camel-http-kafka-connector (sink)?

nervgh opened a new issue #1296:
URL: https://github.com/apache/camel-kafka-connector/issues/1296


   Hi everyone!
   
   I'm a new one in Kafka Connect world. I want to understand how configure next scenario in terms of Kafka Connect and camel-http-kafka-connector.
   
   The scenario is. We have an HTTP endpoint. It sends SMS and responds with `smsId`:
   
   ```sh
   curl -H "Accept: application/json" \
        -H "Content-Type: application/json" \
        -X POST -d '{text: "my sms text"}' \
        http://example.com/send-sms # --> responds with "{id: 1}"
   ```
   
   How to push further the HTTP response from endpoint? I need to handle that response and correlate it with the request. 
   
   For example, 
   
   1. My message into Kafka is `{text: "my sms text"}`
   2. camel-http-kafka-connector takes it and sens to URL `http://example.com/send-sms`
   3. And I don't know how to capture response from endpoint
   4. And I don'y know how to correlate them (req and res)
   
   Thanks for any feedback!)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] nervgh commented on issue #1296: How can I capture the HTTP response from camel-http-kafka-connector (sink)?

Posted by GitBox <gi...@apache.org>.
nervgh commented on issue #1296:
URL: https://github.com/apache/camel-kafka-connector/issues/1296#issuecomment-1018568012


   I'm closing the issue because I've found the answer recently:
   
   > ### Connect Reporter
   > 
   > The Kafka Connect Reporter submits the result of a sink operation to a reporter topic. After successfully sinking a record or following an error condition, the Connect Reporter is called to submit the result report. The report is constructed to include details about how the original record was handled along with additional information about the sink event. These records are written to configurable success and error topics for further consumption. The following is an example of the basic Connect Reporter configuration properties added to a sink connector configuration:
   > 
   > ```propertires
   > reporter.bootstrap.servers=localhost:9092
   > reporter.result.topic.name=success-responses
   > reporter.result.topic.replication.factor=1
   > reporter.error.topic.name=error-responses
   > reporter.error.topic.replication.factor=1
   > ```
   > 
   
   https://docs.confluent.io/home/connect/self-managed/userguide.html#kconnect-reporter


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [camel-kafka-connector] nervgh closed issue #1296: How can I capture the HTTP response from camel-http-kafka-connector (sink)?

Posted by GitBox <gi...@apache.org>.
nervgh closed issue #1296:
URL: https://github.com/apache/camel-kafka-connector/issues/1296


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org