warpdotdev/warp · error · anyhow::Error

GitHub authorization failed. Please try again.

Error message

GitHub authorization failed. Please try again.

What it means

Terminal error from the OAuth polling branch of auth_repos_then_execute: after a private repo required authorization, the opened browser flow's transaction (poll_oauth_until_terminal) reached OauthConnectTxStatus::Failed. This means the user actively completed/denied the flow unsuccessfully — authorization was rejected, revoked, or the GitHub App install failed server-side.

Source

Thrown at app/src/ai/agent_sdk/environment.rs:649

                            let integrations_client = ServerApiProvider::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 |_, poll_result, ctx| {
                                    match poll_result {
                                        Ok(OauthConnectTxStatus::Completed) => {
                                            // OAuth completed, retry auth check and operation.
                                            Self::auth_repos_then_execute(repos, next_attempt, operation_name, on_success, ctx);
                                        }
                                        Ok(OauthConnectTxStatus::Failed) => {
                                            ctx.terminate_app(
                                                warpui::platform::TerminationMode::ForceTerminate,
                                                Some(Err(anyhow::anyhow!(
                                                    "GitHub authorization failed. Please try again."
                                                ))),
                                            );
                                        }
                                        Ok(OauthConnectTxStatus::Expired) => {
                                            ctx.terminate_app(
                                                warpui::platform::TerminationMode::ForceTerminate,
                                                Some(Err(anyhow::anyhow!(
                                                    "GitHub authorization expired. Please try again."
                                                ))),
                                            );
                                        }
                                        Ok(OauthConnectTxStatus::Pending)
                                        | Ok(OauthConnectTxStatus::InProgress) => {
                                            // Should not be returned by poll_oauth_until_terminal.
                                            ctx.terminate_app(
                                                warpui::platform::TerminationMode::ForceTerminate,
                                                Some(Err(anyhow::anyhow!(

View on GitHub (pinned to e72fd7aacb)

Solutions

  1. Re-run the command and complete the GitHub authorization, making sure to click Authorize/Grant
  2. Confirm you are signed into GitHub in the browser as an account with rights over the target repos/org
  3. Check the GitHub App installation status under org Settings > GitHub Apps and retry
  4. If it keeps failing, disconnect and reconnect the GitHub integration from Warp settings, then retry
Defensive patterns

Strategy: retry

Validate before calling

// Pre-empt the OAuth flow: verify the GitHub integration is connected and has
// repo access in Warp settings before running create with private repos.

Try / catch

Ok(OauthConnectTxStatus::Failed) => {
    // authorization rejected or install failed: prompt user to re-run and
    // complete consent, checking the GitHub account signed into the browser
}

Prevention

When it happens

Trigger: Denying the GitHub authorization request in the browser; a GitHub App installation that errors out; the connected GitHub account lacking permission to grant access to the target org/repos; server marking the connect transaction as failed.

Common situations: Clicking 'Deny' or aborting the GitHub consent page; org policies blocking the App install; authorizing the wrong GitHub account; browser opening a stale/expired consent session that reports failure.

Related errors


AI-assisted analysis of warpdotdev/warp@e72fd7aacb (2026-08-16). Data as JSON: /api/errors/c3b03637cb985f86. Report an issue: GitHub.