Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[question] unable to do request http2: unsupported scheme #13

Open
boris-lapouga opened this issue Jul 1, 2020 · 3 comments
Open

[question] unable to do request http2: unsupported scheme #13

boris-lapouga opened this issue Jul 1, 2020 · 3 comments

Comments

@boris-lapouga
Copy link

Greetings,

This is just a question, not a "request" for a solution.

I followed the guidelines to setup Postman (7.26.0) proxy and ran docker grpc-json-proxy, when trying to send a simple message I get this error:

2020/07/01 10:43:11 unable to do request err=[Post http://localhost:50051/notes.NoteService/List: http2: unsupported scheme]

I was wondering if the http/2 support is not implemented in your library or gRPC calls would generally not work over http/2 carrier?

It seems like you were writing that documentation before Postman defaulted to http/2 requests with no ability to specify protocol version for the requests.

Thank you

@boris-lapouga boris-lapouga changed the title [question] 2020/07/01 10:43:11 unable to do request http2: unsupported scheme [question] unable to do request http2: unsupported scheme Jul 1, 2020
@jnewmano
Copy link
Owner

jnewmano commented Jul 1, 2020

Do you have any more information on Postman directly supporting http/2? I'm using Postman (7.27.1) on MacOS and it doesn't appear to support http/2 yet.

Separately, can you export your Postman request as a Curl command and post it here? You may be missing a header in Postman to signal the proxy to modify the request. The log line above the one you posted may have additional relevant information.

@boris-lapouga
Copy link
Author

@jnewmano Sorry it took me a while to respond.

I did follow the instructions from README to run docker container and proxy a request to it, this would be the cURL command:
curl --location --request POST 'http://localhost:60055/join.geo/Places/List' \ --header 'Content-Type: application/grpc+json'

This would be the output of the proxy container:
2020/07/06 15:21:03 proxying request url=[http://localhost:60055/join.geo/Places/List] isJSONGRPC=[true] 2020/07/06 15:21:03 unable to do request err=[Post http://localhost:60055/join.geo/Places/List: http2: unsupported scheme]

There's really nothing extra going on, just wanted to have basics up and running.

As for http/2, seems like it really is not supported yet by Postman, but then I'm puzzled what responds to me with that message. 🤔

I'll appreciate any help.

@abin1989
Copy link

I also has the same issue.
It work when I add a Grpc-Insecure header set to true.
Maybe this can help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants