Got successful response from URL – How to solve this Elasticsearch error

Opster Team

Aug-23, Version: 6.8-7.13

Briefly, this error occurs when Elasticsearch successfully retrieves data from a specified URL. It’s not an error but an informational message indicating that a request to a URL was successful. If you’re seeing this frequently and it’s cluttering your logs, you might want to adjust your logging level to exclude informational messages. Alternatively, if you’re not expecting this message, check your Elasticsearch configuration and any scripts or applications interacting with Elasticsearch to ensure they’re only making necessary requests.

This guide will help you check for common problems that cause the log ” Got successful response [{}] from URL [{}] ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: response.

Log Context

Log “Got successful response [{}] from URL [{}]” classname is WaitForHttpResource.java.
We extracted the following from Elasticsearch source code for those seeking an in-depth context :

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
protected void checkResource(SSLContext ssl) throws IOException {
final HttpURLConnection connection = buildConnection(ssl);
connection.connect();
final Integer response = connection.getResponseCode();
if (validResponseCodes.contains(response)) {
logger.info("Got successful response [{}] from URL [{}]"; response; url);
return;
} else {
throw new IOException(response + " " + connection.getResponseMessage());
}
}
protected void checkResource(SSLContext ssl) throws IOException { final HttpURLConnection connection = buildConnection(ssl); connection.connect(); final Integer response = connection.getResponseCode(); if (validResponseCodes.contains(response)) { logger.info("Got successful response [{}] from URL [{}]"; response; url); return; } else { throw new IOException(response + " " + connection.getResponseMessage()); } }
    protected void checkResource(SSLContext ssl) throws IOException {
        final HttpURLConnection connection = buildConnection(ssl);
        connection.connect();
        final Integer response = connection.getResponseCode();
        if (validResponseCodes.contains(response)) {
            logger.info("Got successful response [{}] from URL [{}]"; response; url);
            return;
        } else {
            throw new IOException(response + " " + connection.getResponseMessage());
        }
    }

 

 [ratemypost]

Opster
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.