Connect to a Go GRPC Server running with TLS enabled using node js grpc client

1,537 views
Skip to first unread message

Aakarshit Naga Sai Batchu

unread,
Mar 9, 2017, 11:36:00 PM3/9/17
to grpc.io

We are running a go-grpc server with TLS enabled.
When we use the go-grpc-client it works perfectly fine with the Server.
But when we try node js and python grpc clients with go-grpc server it is throwing exceptions


CLient-Side-Exceptions(Node js):


Error: Connect Failed


Client-Side-Exceptions(Python):


grpc._channel._Rendezvous: <_Rendezvous of RPC that terminated with (StatusCode.UNAVAILABLE, Connect Failed)>


Server-Side-Exceptions(Go):


transport: http2Server.HandleStreams failed to receive the preface from client: EOF

Menghan Li

unread,
Mar 14, 2017, 8:03:35 PM3/14/17
to grpc.io
gRPC server expects http2.ClientPreface(https://godoc.org/golang.org/x/net/http2#pkg-constants).
From the server side log, I can only tell that it didn't get the ClientPreface.

The client logs doesn't tell anything more than the connection failed.

I'm not sure what the reason is. Can you provide more logs on both side?
I would guess something is wrong with the TLS handshake. But I'm not sure what it is.

Michael Lumish

unread,
Mar 14, 2017, 8:09:59 PM3/14/17
to Menghan Li, grpc.io
One possibility is that the client is not set up to use SSL. Can you show the code you use to initialize the clients?

--
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+u...@googlegroups.com.
To post to this group, send email to grp...@googlegroups.com.
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/5b638586-06ea-4193-be4f-c9942fe17a50%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Aakarshit Naga Sai Batchu

unread,
Mar 15, 2017, 7:38:56 AM3/15/17
to grpc.io
Thanks Guys for Replying. The Issue has been Resolved.

cocoa...@gmail.com

unread,
Jun 1, 2017, 4:56:12 AM6/1/17
to grpc.io
hi, how you fix this issue? I have met the same issue.

在 2017年3月15日星期三 UTC+8下午7:38:56,Aakarshit Naga Sai Batchu写道:

Vikas Garg

unread,
Dec 13, 2022, 1:48:30 PM12/13/22
to grpc.io
Hi ,
Could you please help - How did you resolve the issue?

Zach Reyes

unread,
Dec 15, 2022, 5:30:38 PM12/15/22
to grpc.io
Can you please file an issue in the gRPC-Go repository if you need help: https://github.com/grpc/grpc-go/issues. Thanks!
Reply all
Reply to author
Forward
0 new messages