prestodb/presto · error · RuntimeException

Request to %s failed: %s [Error: %s]

Error message

Request to %s failed: %s [Error: %s]

What it means

After building the /v1/info request, JsonResponse.execute returns a response whose failure status is surfaced by this formatted ClientException: it reports the requested server URL, the HTTP failure description, and the underlying error. It fires when the coordinator cannot be reached or the /v1/info endpoint returns a non-success response (wrong host/port, TLS problem, server error).

Source

Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/QueryExecutor.java:61

    public StatementClient startQuery(ClientSession session, String query)
    {
        return newStatementClient(httpClient, session, query);
    }

    public ServerInfo getServerInfo(URI server)
    {
        HttpUrl url = HttpUrl.get(server);
        if (url == null) {
            throw new ClientException("Invalid server URL: " + server);
        }
        url = url.newBuilder().encodedPath("/v1/info").build();

        Request request = new Request.Builder().url(url).build();

        JsonResponse<ServerInfo> response = JsonResponse.execute(SERVER_INFO_CODEC, httpClient, request);
        if (!response.hasValue()) {
            throw new RuntimeException(format("Request to %s failed: %s [Error: %s]", server, response, response.getResponseBody()));
        }
        return response.getValue();
    }
}

View on GitHub (pinned to 55bb57d202)

Solutions

  1. Verify the Presto coordinator host and port are correct and reachable from the client
  2. Check TLS/proxy configuration when the error indicates a connection or certificate problem
  3. Inspect the embedded Error field for the server-side failure reason and retry transient network failures
Defensive patterns

Strategy: retry

When it happens

Trigger: Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/QueryExecutor.java:61 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of prestodb/presto@55bb57d202 (2026-09-04). Data as JSON: /api/errors/dfa4bb9835123d0a. Report an issue: GitHub.