Skip to content
Bug Barometer

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

  1. First tracked here as Solution Scheduled with 5 reports

    Nov 30, 2026

Also open in Anypoint Connectors