Skip to content

HTTP/2 extended connect error message doesn't blame the server #111470

Open
@Mrgaton

Description

@Mrgaton

Description

System.Net.Http.HttpRequestException: Failed to establish web socket connection over HTTP/2 because extended CONNECT is not supported. Try to downgrade the request version to HTTP/1.1.

Reproduction Steps

Conect to a websocket with Extended Connect

Expected behavior

Work?

Actual behavior

Exception

Regression?

No response

Known Workarounds

No response

Configuration

   conection = new ClientWebSocket();

   conection.Options.SetRequestHeader("Stream-Type", ",mystream");
   conection.Options.HttpVersion = HttpVersion.Version30;

   await conection.ConnectAsync(new Uri(webSocketUri), Net.client, CancellationToken.None);

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions