warpdotdev/warp · error
GitHub authorization failed. Please try again.
Error message
GitHub authorization failed. Please try again.
What it means
After printing a GitHub auth URL, the runner polls the OAuth connect transaction; OauthConnectTxStatus::Failed (app/src/ai/agent_sdk/agent_config.rs:159) means the transaction transitioned to an explicit failure, and the app force-terminates with this message. Note this path does not retry — only Completed continues the loop.
Source
Thrown at app/src/ai/agent_sdk/agent_config.rs:159
let integrations_client = ServerApiProvider::handle(ctx)
.as_ref(ctx)
.get_integrations_client();
let tx_id = tx_id.into_inner();
let poll_future = poll_oauth_until_terminal(integrations_client, tx_id);
let next_attempt = attempt + 1;
ctx.spawn(poll_future, move |runner, poll_result, ctx| {
match poll_result {
Ok(OauthConnectTxStatus::Completed) => {
// OAuth completed, retry
runner.auth_then_list(repos, next_attempt, repo_spec, ctx);
}
Ok(OauthConnectTxStatus::Failed) => {
ctx.terminate_app(
TerminationMode::ForceTerminate,
Some(Err(anyhow::anyhow!(
"GitHub authorization failed. Please try again."
))),
);
}
Ok(OauthConnectTxStatus::Expired) => {
ctx.terminate_app(
TerminationMode::ForceTerminate,
Some(Err(anyhow::anyhow!(
"GitHub authorization expired. Please try again."
))),
);
}
Ok(_) => {
ctx.terminate_app(
TerminationMode::ForceTerminate,
Some(Err(anyhow::anyhow!(
"Unexpected OAuth status"
))),View on GitHub (pinned to e72fd7aacb)
Solutions
- Re-run the command and click Approve on the consent screen, accepting the requested permissions
- Confirm the GitHub account has access to the target organization/repositories
- If it keeps failing, disconnect and reconnect the GitHub integration from settings
Defensive patterns
Strategy: retry
Prevention
- Approve the OAuth consent on the first attempt; Failed does not auto-retry
- Pre-authorize the integration for the org (admin consent) before scripting list commands
When it happens
Trigger: The user denies or cancels the GitHub OAuth consent, or the connect transaction transitions to Failed server-side (deleted transaction, grant error).
Common situations: Clicking 'Deny' or closing the consent page mid-flow; GitHub org policy rejecting the app; the transaction invalidated by a second concurrent auth attempt.
Related errors
- Exceeded maximum number of authorization attempts ({}). Plea
- GitHub authorization expired. Please try again.
- Error polling OAuth status: {err}
- Cannot list agents: authorization required but no auth flow
- Invalid repo format: '{}'. Expected 'owner/repo' or 'https:/
AI-assisted analysis of warpdotdev/warp@e72fd7aacb (2026-08-16).
Data as JSON: /api/errors/2e24ba9ccf7040b2.
Report an issue: GitHub.