{"record":{"id":"dfa4bb9835123d0a","repo":"prestodb/presto","slug":"request-to-s-failed-s-error-s-dfa4bb","errorCode":null,"errorMessage":"Request to %s failed: %s [Error: %s]","messagePattern":"Request to (.+?) failed: (.+?) \\[Error: (.+?)\\]","errorType":"exception","errorClass":"RuntimeException","httpStatus":null,"severity":"error","filePath":"presto-jdbc/src/main/java/com/facebook/presto/jdbc/QueryExecutor.java","lineNumber":61,"sourceCode":"\n    public StatementClient startQuery(ClientSession session, String query)\n    {\n        return newStatementClient(httpClient, session, query);\n    }\n\n    public ServerInfo getServerInfo(URI server)\n    {\n        HttpUrl url = HttpUrl.get(server);\n        if (url == null) {\n            throw new ClientException(\"Invalid server URL: \" + server);\n        }\n        url = url.newBuilder().encodedPath(\"/v1/info\").build();\n\n        Request request = new Request.Builder().url(url).build();\n\n        JsonResponse<ServerInfo> response = JsonResponse.execute(SERVER_INFO_CODEC, httpClient, request);\n        if (!response.hasValue()) {\n            throw new RuntimeException(format(\"Request to %s failed: %s [Error: %s]\", server, response, response.getResponseBody()));\n        }\n        return response.getValue();\n    }\n}\n","sourceCodeStart":43,"sourceCodeEnd":66,"githubUrl":"https://github.com/prestodb/presto/blob/55bb57d202de3b926896fa966c2c4a44c779634e/presto-jdbc/src/main/java/com/facebook/presto/jdbc/QueryExecutor.java#L43-L66","documentation":"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).","triggerScenarios":"Thrown at presto-jdbc/src/main/java/com/facebook/presto/jdbc/QueryExecutor.java:61 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the Presto coordinator host and port are correct and reachable from the client","Check TLS/proxy configuration when the error indicates a connection or certificate problem","Inspect the embedded Error field for the server-side failure reason and retry transient network failures"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"55bb57d202de3b926896fa966c2c4a44c779634e","analyzedAt":"2026-09-04T12:50:26.162Z","contentChangedAt":"2026-09-04T12:50:26.162Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}