grpc / grpc-dart

The Dart language implementation of gRPC.
https://pub.dev/packages/grpc
Apache License 2.0
861 stars 271 forks source link

Client can't connect to dotnet example server? #465

Closed mhingston closed 3 years ago

mhingston commented 3 years ago

Version: grpc-dart 3.0.0

Hi, I have a .NET core gRPC server implementation based on the Greeter example in the grpc-dotnet repo. I can connect to this no problem using various gRPC clients, however when I try to connect to the server using a dart-grpc implementation based on the helloworld example I'm finding the client just hangs indefinitely and I can't see what I'm missing. I've also tried taking out the codecs to see if that was causing an issue but the issue remains.

I have a test repro for this issue here.

Any pointers would be appreciated.

Thanks

mraleph commented 3 years ago

This line https://github.com/mhingston/grpc-issue/blob/26ab4b2e17cf1b3e4ee240e198f89de01623a94c/server/Properties/launchSettings.json#L6 seems to indicate to me that your server is using TLS, but the client is configured with insecure credentials. You need to configure client using secure credentials mode if you want to talk over HTTPS