Yes, this is expected. The connection cannot be created, because the server is expecting a handshake, but the client is not configured to do it.
The only thing is, I would expect a better error message. Can you check the client and server logs and see if there's any information? https://github.com/grpc/grpc-go#how-to-turn-on-logging Thanks, Menghan On Friday, July 2, 2021 at 1:26:50 AM UTC-7 amits...@gmail.com wrote: > Hello all, > > I have a Go server configured to use self-signed TLS certs. When I > specify the certificate to the client, it all works great. > > When I try to connect to the server over an insecure channel, it seems > that the channel gets established, but i get an error when i make the > RPC method call: > > 2021/07/02 17:37:04 Error getUser > 2021/07/02 17:37:04 rpc error: code = Unavailable desc = connection closed > > Is this expected? > > Thanks, > Amit. > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/c97f567d-45e8-476f-8e5a-f2142a24ef93n%40googlegroups.com.