#gRPC http2 error

6 messages · Page 1 of 1 (latest)

half dragon
#

485454502f = HTTP/

velvet tapir
half dragon
#

I'm not familiar enough with gRPC to know how the connection negotiation happens, @slender pebble can you shed any light?

velvet tapir
#

The weird thing is, I have same service implemented in other project and it works!

I used the exact same module "google.golang.org/grpc" for both projects and the exact same setup:


func RunGrpcServer(srv *MyService) {
    lis, err := net.Listen("tcp", ":9443")
    grpcServer := grpc.NewServer()
    if err != nil {
        panic("failed to listing on port 9443 ...")
    }
    service.RegisterMyServiceServer(grpcServer, srv)

    logrus.Info("listen on port 9443")
    if err := grpcServer.Serve(lis); err != nil {
        panic(fmt.Sprintf("failed to serve: %s", err))
    }
}
velvet tapir
#

It works on local so I guess something is wrong with kube idk 😦

clear sky
#

Do u have a load balancer?