You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There seems to be a bug since version 2.0.0, leading to KHealth storing all ApplicationCall objects and calling them on each /health or /ready. As I understand, interceptor should create a route handler for /health and /ready only once, therefore right now it behaves weirdly.
It happens because there's already a call argument in the top function, which shadows the one in get handler:
Hi!
There seems to be a bug since version 2.0.0, leading to KHealth storing all
ApplicationCall
objects and calling them on each/health
or/ready
. As I understand,interceptor
should create a route handler for/health
and/ready
only once, therefore right now it behaves weirdly.It happens because there's already a
call
argument in the top function, which shadows the one inget
handler:khealth/src/main/kotlin/KHealthPlugin.kt
Lines 36 to 46 in 6847a29
Steps to reproduce
Routing
andCallLogging
.khealth
package tobuild.gradle.kts
.install(KHealth)
toembeddedServer
builder inApplication.kt
./
and then/health
.Expected behavior
2
/
and one/health
:Actual behavior
Calling
/health
gives two more/
logs and then/health
.As you can see, 2 previous
/
calls have been stored and with each/health
get
handler is called with all these calls.The text was updated successfully, but these errors were encountered: