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 hope you're doing well! I wanted to bring up a small issue I've encountered while using Tonic. When creating a channel with the grpc URL scheme, I ran into some unexpected HTTP/2 parsing errors because the GRPC server expected the :scheme header value to be either http or https.
Steps to Reproduce
Here’s the code I used to create the channel:
let channel = Channel::from_shared("grpc://127.0.0.1:50051").unwrap().connect().await;
Problem
It seems that using the grpc scheme leads Tonic to send the request with the grpc scheme, but servers may only understand the values of https and http.
As a result, I encountered the following parsing error:
To enhance the user experience, it might be helpful if Tonic could validate that the URL scheme is either http or https. This small check could prevent others from encountering the same issue and help them have a smoother experience with Tonic.
Version
Here’s the version information for your reference:
Bug Report
Summary
I hope you're doing well! I wanted to bring up a small issue I've encountered while using Tonic. When creating a channel with the
grpc
URL scheme, I ran into some unexpected HTTP/2 parsing errors because the GRPC server expected the:scheme
header value to be eitherhttp
orhttps
.Steps to Reproduce
Here’s the code I used to create the channel:
Problem
It seems that using the
grpc
scheme leads Tonic to send the request with thegrpc
scheme, but servers may only understand the values ofhttps
andhttp
.As a result, I encountered the following parsing error:
Suggestion
To enhance the user experience, it might be helpful if Tonic could validate that the URL scheme is either
http
orhttps
. This small check could prevent others from encountering the same issue and help them have a smoother experience with Tonic.Version
Here’s the version information for your reference:
Platform
I’m currently using the following platform:
Thank you so much for your hard work on Tonic! I really appreciate it, and I hope this feedback is helpful!
The text was updated successfully, but these errors were encountered: