#gRPC http2 error
6 messages · Page 1 of 1 (latest)
ikr, what should I do? is there any settings to indicate http2? is this even a server error?
I'm not familiar enough with gRPC to know how the connection negotiation happens, @slender pebble can you shed any light?
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))
}
}
It works on local so I guess something is wrong with kube idk 😦
Do u have a load balancer?