#GRPC - RpcExceptions are returned as plain Error

2 messages · Page 1 of 1 (latest)

hushed laurel
#

When calling a GRPC server,
exceptions are returned as plain Error objects instead of RpcException.

This makes it impossible to filter using RpcExceptionFilter.
As well as forcing every call to be wrapped in a try catch rather than relying on the filter.

visual epoch
#

You can't serialize errors over the wire (or at least it's not done by any abstraction for you). It's the same thing as calling a http endpoint - you get errors as JSON responses that you need to parse. Errors can't travel over wires.