Http Sink Connector - OAuth2 not working

I am getting below error with my http sink connector.

Error while processing HTTP request with Url :, Status code : 401, Reason Phrase : Unauthorized, Response Content : {“Errors”:[“Authorization has been denied for this request.”],“Result”:{“Status”:“Failure”,“Message”:“Failed!”,“Data”:null}}, (io.confluent.connect.http.writer.HttpWriterImpl:401)

“http.api.url”: ,
“header.converter”: “”,
“behavior.on.error”: “log”,


Its working fine in postman tool and failing in http sink connector. It looks like the token generation is not working and because of this the POST API is failing.

For my token generation API , I need to pass header prefix as ‘bearer’, however I am not able to see the property for the same in http sink connector.

I am not getting the details of token generation API in kconnect log. So that I am not able to identify what’s the issue going on in my connector.

does anyone faced similar kind of issue or anyone have any idea what’s issue on this.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.