Experiencing an issue with `wire` and an rpc call ...
# squarelibraries
r
Experiencing an issue with
wire
and an rpc call that returns
google.protobuf.Empty
Copy code
service AService {
   rpc Working(AParam) returns (AReturn)
   rpc Fails(AParam) returns (google.protobuf.Empty)
}
Working
works, but the call to
Fails
fails with a gRPC transport error.
Is there something I'm missing in a way to call these?
My code looks something like the following
Copy code
val client = GrpcClientProvider.grpcClient.create(AServiceClient::class)
val request = AParam()
val result = client.Working().execute(request)
b
Have you been to find anything for this since then? Would you happen to have a failing test for that?
r
I haven't been focused on this area of the codebase at the moment, I'm about to revisit though. I'll see if I can put together a test if it's still a problem for me. Thanks.
K, finally got back to this. Embarrassingly enough, this is not an issue with wire at all and instead I was hitting an unimplemented end point. In my defense, this was pretty early on in my usage of wire so I didn't have robust error handling, but basically nothing to see here. Thanks for your time!
b
I'm happy to hear it, good luck with the rest