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

GRPC not working with https #7248

Open
1 task done
AdrianoAE opened this issue Apr 6, 2024 · 6 comments
Open
1 task done

GRPC not working with https #7248

AdrianoAE opened this issue Apr 6, 2024 · 6 comments
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer

Comments

@AdrianoAE
Copy link

Expected Behavior

Be able to call GRPC server with https endpoint.

Actual Behavior

When running GRPC server in .NET the endpoint will be https://localhost:XXXX, the current parser does not allow to specify https and the connection fails.

Error invoking remote method 'grpc.loadMethodsFromReflection': Error: 14 UNAVAILABLE: Name resolution failed for target dns:https://localhost:51811

The server is running properly since Postman has no issues, insomnia can't connect at all. Replacing https with grpcs does not work.

Reproduction Steps

No response

Is there an existing issue for this?

Additional Information

No response

Insomnia Version

8.6.1

What operating system are you using?

Windows

Operating System Version

Windows 11

Installation method

insomnia.rest

Last Known Working Insomnia version

No response

@AdrianoAE AdrianoAE added B-bug Bug: general classification S-unverified Status: Unverified by maintainer labels Apr 6, 2024
@subnetmarco
Copy link
Member

This seems to be more of a DNS problem that a TLS problem. Can you try to consume https://127.0.0.1:51811 ?

@AdrianoAE
Copy link
Author

I've tried that, but gave it another try
image

@AdrianoAE
Copy link
Author

any update on this?

@jackkav
Copy link
Contributor

jackkav commented Apr 26, 2024

AFAIK it's atypical to use a http protocol to connect to a grpc server. Without a proxy, a regular gRPC server is expecting grpc://.

Please provide screenshots of both postman and insomnia including the request and response panes

@AdrianoAE
Copy link
Author

There isn't much to show, it simply works with Postman
image

image

The implementation is done by Microsoft under https://github.com/grpc/grpc-dotnet

Tried with
127.0.0.1:51811
Error: 1 CANCELLED: Call cancelled

https://127.0.0.1:51811
Error: 14 UNAVAILABLE: Name resolution failed for target dns:https://127.0.0.1:51811

grpcs://127.0.0.1:51811
Error: 14 UNAVAILABLE: No connection established. Last error: unable to verify the first certificate (2024-04-26T21:44:31.816Z)

@modestotech
Copy link

Same problem. I'm exposing a .NET Web API on 5002 (HTTP) and (5052 (HTTPS), after creating a project from the .NET GRPC service template.

HTTP works.
HTTPS doesn't.

In Postman both just works.

Setup:
image

HTTP response:
image

HTTPS response:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
B-bug Bug: general classification S-unverified Status: Unverified by maintainer
Projects
None yet
Development

No branches or pull requests

4 participants