-
I have a gRPC service with JSON transcoding enabled. An endpoint of the service throws throw new RpcException(new Status(StatusCode.InvalidArgument, "Whatever1"), new Metadata
{
{ "Code", Errors.Error1.ToString() }
});
throw new RpcException(new Status(StatusCode.InvalidArgument, "Whatever2"), new Metadata
{
{ "Code", Errors.Error2.ToString() }
}); Whoever, when I am making an HTTP call to the service, then I am getting the following: {
"code": 3,
"message": "Whatever1",
"details": []
} I expected the trailers to appear in the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
that's weird, different error message should be sent to you already, in the header |
Beta Was this translation helpful? Give feedback.
-
Let's continue in #49196 |
Beta Was this translation helpful? Give feedback.
Let's continue in #49196