Support Questions

Find answers, ask questions, and share your expertise

Nifi ConnectWebSocket Processor failing: How to add an http header to the connection?

New Contributor


I'm trying to use Nifi to connect to a secure WebSocket (wss:// .... ). I'm having trouble connecting to the stream because of a very basic authentication issue.

I've used wscat (npm) and a Java client to successfully connect in the past. All that was needed is an Http Header.

The wscat implementation would only require the following option:

.option('-H, --header <header:value>', 'Set an HTTP header. Repeat to set multiple. (--connect only)', appender(), [])

But, when I add the header as a property to the ConnectWebSocket processor and/or the JettyWebSocketClient, Nifi complains that it is not a supported property.

Since SSL context services are not required to connect to this particular stream, is there a way that I can still connect just using a custom header?


New Contributor

Anyone out there have any hints or tips on this?

New Contributor

did you get a solution to this problem?

Community Manager

@dvmishra, as this is an older post, you would have a better chance of receiving a resolution by starting a new thread. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.


Vidya Sargur,
Community Manager

Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

Expert Contributor

Have you tried passing header details under property "Authentication Header Charset" under JettyWebSocketClient ?