Hi, I found interesting behaviour, if I throw an e...
# ktor
a
Hi, I found interesting behaviour, if I throw an exception in
PHASE_ON_CALL_RESOIND
pipeline handler a.k.a
PluginBuilder.onCallRespond
Ktor does not proceed request which causes timeouts on client side. Could you please suggest why this behaviour is happening? This looks like a bug, but I’m not sure
a
Can you share a code snippet to test the behavior?
a
main.kt
Copy code
fun main() {
    embeddedServer(Netty, port = 8082) {
        install(createApplicationPlugin("MyPlugin") {
            onCallRespond { call ->
                error("oh nooooo")
            }
        })

        routing {
            get {
                call.respondText("hello world")
            }
        }
    }.start(wait = true)
}
request example
Copy code
GET <http://127.0.0.1:8082>
a
Thank you. This is a bug, so I've filed an issue.
👍 2