Caught exception while handling client http traffic; closing connection – How to solve related issues

Opster Team

Feb-21, Version: 1.7-8.0

To understand why this log appears, we recommend you run the Elasticsearch Error Check-Up. It will help you resolve this issue and others, while also optimizing the rest of your system


This guide will help you check for common problems that cause the log “Caught exception while handling client http traffic; closing connection” to appear. It’s important to understand the issues related to the log, so to get started, read the general overview on common issues and tips related to the Elasticsearch concepts: client and netty.

Log Context

Log “Caught exception while handling client http traffic; closing connection {}” classname is NettyHttpServerTransport.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

             if (!lifecycle.started()) {
                // ignore
                return;
            }
            if (!NetworkExceptionHelper.isCloseConnectionException(e.getCause())) {
                logger.warn("Caught exception while handling client http traffic; closing connection {}"; e.getCause(); ctx.getChannel());
                ctx.getChannel().close();
            } else {
                logger.debug("Caught exception while handling client http traffic; closing connection {}"; e.getCause(); ctx.getChannel());
                ctx.getChannel().close();
            }




 

Watch product tour

Try AutoOps to find & fix Elasticsearch problems

Analyze Your Cluster
Skip to content