prestodb/presto · error · IOException
Request to %s failed: %s [Error: %s]
Error message
Request to %s failed: %s [Error: %s]
What it means
executePoll builds this message when the external authentication token-poll endpoint did not return HTTP 200 with a valid token body — the OAuth2 device-flow server rejected or failed the poll (e.g. pending, denied, or server error).
Source
Thrown at presto-client/src/main/java/com/facebook/presto/client/auth/external/HttpTokenPoller.java:145
return new Request.Builder()
.url(url)
.addHeader(USER_AGENT, USER_AGENT_VALUE);
}
private TokenPollResult executePoll(Request request)
throws IOException
{
JsonResponse<TokenPollRepresentation> response = executeRequest(request);
if ((response.getStatusCode() == HTTP_OK) && response.hasValue()) {
return response.getValue().toResult();
}
Optional<String> responseBody = Optional.ofNullable(response.getResponseBody());
String message = format("Request to %s failed: %s [Error: %s]", request.url(), response, responseBody.orElse("<Response Too Large>"));
if (response.getStatusCode() == HTTP_UNAVAILABLE) {
throw new IOException(message);
}
return TokenPollResult.failed(message);
}
private JsonResponse<TokenPollRepresentation> executeRequest(Request request)
throws IOException
{
try {
return execute(TOKEN_POLL_CODEC, client.get(), request);
}
catch (UncheckedIOException e) {
throw e.getCause();
}
}
public static class TokenPollRepresentation
{View on GitHub (pinned to 55bb57d202)
Solutions
- Check the external authenticator service health and URL
- Retry the CLI authentication flow to start a fresh poll
- Verify the redirected token from the browser was pasted/issued correctly
Defensive patterns
Strategy: try-catch
When it happens
Trigger: Thrown at presto-client/src/main/java/com/facebook/presto/client/auth/external/HttpTokenPoller.java:145 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/939bb0775caf1248.
Report an issue: GitHub.