kferrone edited a comment on issue #323:
URL: 
https://github.com/apache/camel-kafka-connector-examples/issues/323#issuecomment-921340187


   Ok, so I am using the unofficial 
[strimzi-cli](https://github.com/systemcraftsman/strimzi-kafka-cli) here for 
local testing and Strimzi is running in kubernetes. 
   
   I made a file called `producer.properties` with the following on my local 
machine:
   ```properties
   CamelHeader.Authorization=Bearer 123token456
   ```
   Then I run this command to create a producer from the cli
   ```bash
   kfk console-producer --topic my-topic -c my-cluster -n default 
--producer.config producer.properties
   ```
   Then I paste the following:
   ```
   {"message": "foo"}
   ```
   I see my consumers do get the message including the connector. 
   However I am still getting `403` back from the endpoint from within the sink 
connector.
   Did I even do what you are saying? 
   
   How to debug the actual request getting made to the endpoint? I want to see 
the headers, body and all. 
   
   I also get this warning when I open the producer terminal:
   ```
   WARN The configuration 'CamelHeader.Authorization' was supplied but isn't a 
known config. (org.apache.kafka.clients.producer.ProducerConfig)
   ```


-- 
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-unsubscr...@camel.apache.org

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


Reply via email to