{"record":{"id":"c3b03637cb985f86","repo":"warpdotdev/warp","slug":"github-authorization-failed-please-try-again-c3b036","errorCode":null,"errorMessage":"GitHub authorization failed. Please try again.","messagePattern":"GitHub authorization failed\\. Please try again\\.","errorType":"exception","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/environment.rs","lineNumber":649,"sourceCode":"                            let integrations_client = ServerApiProvider::as_ref(ctx)\n                                .get_integrations_client();\n                            let tx_id = tx_id.into_inner();\n                            let poll_future = poll_oauth_until_terminal(integrations_client, tx_id);\n\n                            let next_attempt = attempt + 1;\n\n                            ctx.spawn(\n                                poll_future,\n                                move |_, poll_result, ctx| {\n                                    match poll_result {\n                                        Ok(OauthConnectTxStatus::Completed) => {\n                                            // OAuth completed, retry auth check and operation.\n                                            Self::auth_repos_then_execute(repos, next_attempt, operation_name, on_success, ctx);\n                                        }\n                                        Ok(OauthConnectTxStatus::Failed) => {\n                                            ctx.terminate_app(\n                                                warpui::platform::TerminationMode::ForceTerminate,\n                                                Some(Err(anyhow::anyhow!(\n                                                    \"GitHub authorization failed. Please try again.\"\n                                                ))),\n                                            );\n                                        }\n                                        Ok(OauthConnectTxStatus::Expired) => {\n                                            ctx.terminate_app(\n                                                warpui::platform::TerminationMode::ForceTerminate,\n                                                Some(Err(anyhow::anyhow!(\n                                                    \"GitHub authorization expired. Please try again.\"\n                                                ))),\n                                            );\n                                        }\n                                        Ok(OauthConnectTxStatus::Pending)\n                                        | Ok(OauthConnectTxStatus::InProgress) => {\n                                            // Should not be returned by poll_oauth_until_terminal.\n                                            ctx.terminate_app(\n                                                warpui::platform::TerminationMode::ForceTerminate,\n                                                Some(Err(anyhow::anyhow!(","sourceCodeStart":631,"sourceCodeEnd":667,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/environment.rs#L631-L667","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","solutions":["Re-run the command and complete the GitHub authorization, making sure to click Authorize/Grant","Confirm you are signed into GitHub in the browser as an account with rights over the target repos/org","Check the GitHub App installation status under org Settings > GitHub Apps and retry","If it keeps failing, disconnect and reconnect the GitHub integration from Warp settings, then retry"],"exampleFix":null,"handlingStrategy":"retry","validationCode":"// Pre-empt the OAuth flow: verify the GitHub integration is connected and has\n// repo access in Warp settings before running create with private repos.","typeGuard":null,"tryCatchPattern":"Ok(OauthConnectTxStatus::Failed) => {\n    // authorization rejected or install failed: prompt user to re-run and\n    // complete consent, checking the GitHub account signed into the browser\n}","preventionTips":["Complete the GitHub consent page (Authorize/Install) each time it opens","Confirm the browser session is the GitHub account with rights to the target repos","Check org Settings > GitHub Apps if installs keep failing","Disconnect/reconnect the GitHub integration when failures repeat"],"tags":["rust","oauth","github","auth","browser-flow"],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}