https://kotlinlang.org logo
#http4k
Title
# http4k
o

obobo

10/08/2020, 7:20 PM
Hi, I've setup a small netty server in a project to serve prometheus scrapes. It works fine, but a little while after I hit the endpoint I start seeing
Copy code
2020-10-08T19:17:15.008682Z [WARN] An exceptionCaught() event was fired, and it reached at the tail of the pipeline. It usually means the last handler in the pipeline did not handle the exception. exception_message=Connection reset by peer exception_name=java.io.IOException
Is there something I can setup to avoid this stacktrace? I assume this is because of keepalive.
d

dave

10/08/2020, 7:22 PM
guessing at the moment (AFK), but try wrapping your entire app with a CatchAll filter. we shouldn't really let exceptions be bubbling out to the underlying server
o

obobo

10/08/2020, 7:24 PM
gotcha, i'll try that out.
d

dave

10/08/2020, 7:28 PM
👍
6 Views