Hi, I've setup a small netty server in a project t...
# http4k
o
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
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
gotcha, i'll try that out.
d
👍