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
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?
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.
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.
Activity
derekbekoe commentedon Jun 26, 2023
We do not currently support HTTP/2 via
*devtunnels.ms. However, this should be possible via thedevtunnel connect TUNNELIDcommand 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 vialocalhost:PORT.I've marked this as a feature request for support HTTP/2 on
*.devtunnels.msbut let us know if the above works.mayuki commentedon Jun 27, 2023
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.[-]Is Dev Tunnels compatible with gRPC or HTTP/2?[/-][+]Support HTTP/2 on *.devtunnels.ms[/+][-]Support HTTP/2 on *.devtunnels.ms[/-][+]Support HTTP/2 on *devtunnels.ms[/+][-]Support HTTP/2 on *devtunnels.ms[/-][+]Support HTTP/2 on devtunnels.ms[/+]derekbekoe commentedon Feb 26, 2024
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.