-
Notifications
You must be signed in to change notification settings - Fork 177
Open
Description
I am attempting to install a default Exception handler for our gRPC server stubs. I have tried using both a java gRPC interceptor and coroutine exception handlers, but nothing seems to work. The following code snippet below replicates the issue.
val handler = CoroutineExceptionHandler { _, ex ->
println("this never happens!!")
}
internal class TestGreeterGrpcService : GreeterGrpcKt.GreeterCoroutineImplBase(handler) {
override suspend fun sayHello(request: HelloRequest): HelloReply = throw RuntimeException("boom")
}
Using the debugger I traced the issue to here
It seems like the CoroutineContext provided to the stub is not used in the Flow that dispatches requests.
I'm fairly new to coroutines so maybe I'm doing something wrong.
quckly, leigh-airwallex, jonpeterson, mfickett, Ross-respona and 8 more
Metadata
Metadata
Assignees
Labels
No labels