Scott Coplin
05/25/2023, 11:38 PMNOT_FOUND
as a means to communicate non-existence of an entity. If the provider changed behavior to return INVALID_ARGUMENT
instead in the same situation it would clearly break clients.
Is there a way to write a consumer test matching on gRPC response status? An example would be ideal. I’m fearing there may not be based upon this code which seems to only perform validations on non-error responses, but I am not 100% sure I’m looking in the right spot.uglyog
05/25/2023, 11:43 PMScott Coplin
05/26/2023, 12:18 AMStatusRuntimeException
. Haven’t seen the ignoring issue, but maybe we’re using a different library (scalapb wrapper on grpc-netty) or you’re coming in at a different layer?uglyog
05/26/2023, 3:45 AMCurious what you’ve seen from gRPC Java with respect to this?I haven't really dug into it, I was expecting to get some exception with the status and associated message, but I got an IO exception stating that the Protobuf message could not be parsed. It might be due to some interceptor needing to be setup, but I expected this behaviour out of the box and it looks like it ignores the status.
Yu Xie
05/26/2023, 5:58 PM