grpc-kotlin icon indicating copy to clipboard operation
grpc-kotlin copied to clipboard

Spring GRPC Exception Handlers are ignored

Open mckernant1 opened this issue 6 months ago • 1 comments
trafficstars

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

mckernant1 avatar May 06 '25 13:05 mckernant1

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.

mckernant1 avatar May 16 '25 01:05 mckernant1