You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@4e6 Thanks for the report, yes it looks like that header is missing. Just to fully understand your scenario, you are using Helidon as a client of some third-party WS server right?
Environment Details
Problem Description
When trying to create a WebSocket connection with
WsClient
, it fails to upgrade the connectionAccording to the Mozilla doc, a WebSocket upgrade request should contain two headers:
Debugging showed that the upgrade request sets the
Upgrade
header but is missing theConnection
onehelidon/webclient/http1/src/main/java/io/helidon/webclient/http1/Http1ClientRequestImpl.java
Lines 130 to 133 in 68de0bb
After setting the
Connection
header (see the example below), the connection was successfully established.Steps to reproduce
This example results in an
io.helidon.webclient.websocket.WsClientException: Failed to upgrade to WebSocket.
After adding a
Connection
header, the connection is established successfullyThe text was updated successfully, but these errors were encountered: