Go SDK is unable to connect to dgraph cloud. x509: certificate is valid

Error: rpc error: code = Unavailable desc = connection error: desc = “transport: authentication handshake failed: x509: certificate is valid for *.grpc.eu-central-1.aws.cloud.dgraph.io, not nameless-brook-330378.grpc.grpc.eu-central-1.aws.cloud.dgraph.io

        conn, err := dgo.DialCloud("grpc://nameless-brook-330378.grpc.eu-central-1.aws.cloud.dgraph.io", "")
	if err != nil {
	defer conn.Close()

	ctx := context.Background()
	client := dgo.NewDgraphClient(api.NewDgraphClient(conn))
	tnx := client.NewTxn()
	defer tnx.Discard(ctx)

        resp, err := tnx.QueryWithVars(ctx, q, variables)
	if err != nil {


it appears that the Go SDK is bugged, it attached the “.grpc.” and “:433” to the cloud endpoint!

so when I use the endpoint


the Go SDK convert it to :


the Go SDK should be able to detected that the endpoint I give to it is completed and it shouldn’t try to change it!