I am attempting to write a set of services that will provide a REST interface to external clients, while using gRPC/protobuf for inter-service communication internally. Spri
In may case i have: .... response.setMessageCode(0).setResponseMessage("string message"); .... that never return to client.
I change this to: ... APIResponse response = APIResponse.newBuilder().setResponseMessage(localidad.toString()).build(); ...
Without ".setMessageCode(0)"... and it works!
According to the Gateway log, it looks like jackson
is having trouble converting proto to json.
can you try com.googlecode.protobuf.format.JsonFormat
? I am not spring user, but there should be API for custom serialization. or, you can add custom serialization to jackson using JsonFormat
but it sounds little weird.