Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Question) Golang client compatibility #24

Open
andvary opened this issue Aug 4, 2023 · 1 comment
Open

(Question) Golang client compatibility #24

andvary opened this issue Aug 4, 2023 · 1 comment

Comments

@andvary
Copy link

andvary commented Aug 4, 2023

Greetings!
I’m trying to implement a gRPC server based on the examples you have provided.
As for the client, I’m using a Go client, setting it up like this:

func setupClient(target string) (pb.Rpc1Client, error) {
  conn, err := grpc.Dial(target, grpc.WithTransportCredentials(insecure.NewCredentials()))
  if err != nil {
    return nil, err
  }
  return pb.NewRpc1Client(conn), nil
}

Unfortunately, when trying to send a request to the server I get an error. Client side:

2023/08/03 05:37:01 INFO: [transport] transport: loopyWriter.run returning. connection error: desc = "transport is closing"
2023/08/03 05:37:01 WARNING: [core] grpc: addrConn.createTransport failed to connect to {192.168.98.13:7777 192.168.98.13:7777 <nil> <nil> 0 <nil>}: failed to receive server preface within timeout

Server side: PROTOBUF_C_RPC_PROTOCOL_STATUS_INCOMPLETE_BUFFER

Successful request, C client:
изображение

Failed exchange, Go client:
изображение

It looks like the Go client attempts to connect using HTTP/2 as transport whereas the server does not support it.
Could you please help me solve this problem: is there a way I can tune the server to be compatible with the Go client or it is not possible at all?

@fyfyp1234
Copy link

fyfyp1234 commented Aug 4, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants