Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

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

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

New Contributor

Hello,

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?

1 REPLY 1

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

New Contributor

Anyone out there have any hints or tips on this?