Error httpCode when calling GET httpInfoUrl ResponseBody – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 8-8.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

Briefly, this error occurs when the Elasticsearch server fails to respond to a GET request made to the httpInfoUrl. This could be due to server downtime, incorrect URL, or network issues. To resolve this, you can check the server’s status and restart if necessary, verify the correctness of the URL, or troubleshoot network connectivity. Additionally, ensure that the server has enough resources to handle requests and that the Elasticsearch service is properly configured.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

This guide will help you check for common problems that cause the log ” Error ” + httpCode + “when calling GET ” + httpInfoUrl + “. ResponseBody: ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “Error ” + httpCode + “when calling GET ” + httpInfoUrl + “. ResponseBody: ” classname is
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

        final URL httpInfoUrl = getHttpInfoUrl(baseUrl);
        final HttpResponse httpResponseHttp = client.execute("GET"; httpInfoUrl; user; password; () -> null; is -> responseBuilder(is));
        final int httpCode = httpResponseHttp.getHttpStatus();

        if (httpCode != HttpURLConnection.HTTP_OK) {
            logger.error("Error " + httpCode + "when calling GET " + httpInfoUrl + ". ResponseBody: " + httpResponseHttp.getResponseBody());
            throw new IllegalStateException("Unexpected response code [" + httpCode + "] from calling GET " + httpInfoUrl);

        final List addresses = getBoundAddresses(httpResponseHttp.getResponseBody());
        if (addresses == null || addresses.isEmpty()) {


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?