grpc-kotlin
grpc-kotlin copied to clipboard
Spring GRPC Exception Handlers are ignored
Hello,
I have recently started using kotlin stubs with the new Spring GRPC library and ran into this issue https://github.com/spring-projects/spring-grpc/issues/164.
After registering a GRPC exception handler, my exception is swallowed here and converted into an unknown instead of going through the proper chain.
Versions
Kotlin stub version: 1.4.3
Spring GRPC version 0.8.0
Spring boot plugin version: 3.4.5
This should be fixed in spring grpc 0.9.0 when it comes out, still may be worth to investigate if some some of built in exception handling for this library is worth it. The fix is a bit hacky as it reads the status output from the stub in a custom SimpleForwardingServerCall to handle the status. See above PR for details.
Feel free to close if that is not a concern.