Skip to content

Support HTTP/2 on devtunnels.ms #263

Closed as not planned
Closed as not planned

Description

I started a gRPC server on ASP.NET Core and then tried to access it from a client through Dev Tunnels.

The client throws the following exception:

Grpc.Core.RpcException: 'Status(StatusCode="Internal", Detail="Error starting gRPC call. HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.", DebugException="System.Net.Http.HttpRequestException: Requesting HTTP version 2.0 with version policy RequestVersionOrHigher while unable to establish HTTP/2 connection.")'

The tunnel appears to downgrade HTTP requests, is it not compatible with HTTP/2?

Activity

  1. derekbekoe commented on Jun 26, 2023

    @derekbekoe
    Contributor

    We do not currently support HTTP/2 via *devtunnels.ms. However, this should be possible via the devtunnel connect TUNNELID command documented on this page - https://learn.microsoft.com/en-us/azure/developer/dev-tunnels/cli-commands. With this, the client can connect to your grpc server via localhost:PORT.

    I've marked this as a feature request for support HTTP/2 on *.devtunnels.ms but let us know if the above works.

  2. mayuki commented on Jun 27, 2023

    @mayuki
    Author

    Thanks. I confirmed the connection with the client using devtunnel-cli and gRPC (HTTP/2).
    I look forward to supporting HTTP/2 on *.devtunnels.ms.

  3. changed the title [-]Is Dev Tunnels compatible with gRPC or HTTP/2?[/-] [+]Support HTTP/2 on *.devtunnels.ms[/+] on Jun 28, 2023
  4. changed the title [-]Support HTTP/2 on *.devtunnels.ms[/-] [+]Support HTTP/2 on *devtunnels.ms[/+] on Jun 28, 2023
  5. changed the title [-]Support HTTP/2 on *devtunnels.ms[/-] [+]Support HTTP/2 on devtunnels.ms[/+] on Jun 28, 2023
  6. derekbekoe commented on Feb 26, 2024

    @derekbekoe
    Contributor

    At this point, HTTP/2 on *.devtunnels.ms is not planned. Given this, I'll be closing this issue and if we are able to add this in the future, we'll re-open. However, thanks for your feature request for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestNew feature or functionality request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions