WebSockets Connector throws WebSocketClientHandshakeException on Mule 4.11.2 when a subprotocol is required
Not fixed yet. Salesforce has scheduled a fix.
Summary
When using WebSockets Connector 1.0.2 in Mule Runtime 4.11.2 to connect to a server that requires a specific subprotocol, the connection fails during the handshake phase.
The underlying network libraries (Reactor Netty and Netty) in Mule 4.11.2 enforce strict RFC 6455 validation. While the connector successfully sets the Sec-WebSocket-Protocol on the outbound request, it does not currently register this expected subprotocol with the internal Netty WebSocketClientHandshaker. Consequently, the handshaker defaults to expecting null. When the server responds with the requested subprotocol, Netty rejects it, resulting in the following error:
WebSocketClientHandshakeException: Invalid subprotocol. Actual: [subprotocol-name]. Expected one of: null.
This issue does not occur on Mule Runtime 4.10.5 because the older runtime version utilizes a more lenient validation process.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Solution Scheduled with 5 reports
Nov 30, 2026
Also open in Anypoint Connectors
SFTP Connector Write Operation Fails with SSH_FX_NO_SUCH_FILE Exception
Solution ScheduledMuleSoft / Anypoint ConnectorsReported Sep 10, 202559 reports59reports
Azure Event Hib listener not listening the events when it stoped and restarted due to checkpoint not created
Solution ScheduledMuleSoft / Anypoint ConnectorsReported Feb 14, 202422 reports22reports
JMS connector - enabling TLS cause problems with property socket.verifyHostName=false
Solution ScheduledMuleSoft / Anypoint Connectorsv1.9.1Reported Feb 28, 202419 reports19reports
Performance improvement for Sftp Connector 2.x
In ReviewMuleSoft / Anypoint ConnectorsReported Sep 26, 202416 reports16reports