warpdotdev/warp · error · anyhow::Error

OAuth authorization failed.

Error message

OAuth authorization failed.

What it means

Error "OAuth authorization failed." thrown in warpdotdev/warp.

Source

Thrown at app/src/ai/agent_sdk/integration.rs:308

                                                // This may happen multiple times if the user needs to authorize multiple services.
                                                runner.start_create_or_update_flow(
                                                    ctx,
                                                    next_integration_type,
                                                    next_environment_uid,
                                                    next_base_prompt,
                                                    next_model_id,
                                                    next_mcp_servers_json,
                                                    next_remove_mcp_server_names,
                                                    next_worker_host,
                                                    next_enabled,
                                                    next_is_update,
                                                    next_attempt,
                                                );
                                            }
                                            Ok(OauthConnectTxStatus::Failed) => {
                                                ctx.terminate_app(
                                                    TerminationMode::ForceTerminate,
                                                    Some(Err(anyhow::anyhow!("OAuth authorization failed."))),
                                                );
                                            }
                                            Ok(OauthConnectTxStatus::Expired) => {
                                                ctx.terminate_app(
                                                    TerminationMode::ForceTerminate,
                                                    Some(Err(anyhow::anyhow!("OAuth authorization expired."))),
                                                );
                                            }
                                            Ok(OauthConnectTxStatus::Pending)
                                            | Ok(OauthConnectTxStatus::InProgress) => {
                                                // Should not be returned by poll_oauth_until_terminal.
                                                ctx.terminate_app(
                                                    TerminationMode::ForceTerminate,
                                                    Some(Err(anyhow::anyhow!("Unexpected non-terminal OAuth status returned"))),
                                                );
                                            }
                                            Err(err) => {
                                                ctx.terminate_app(

View on GitHub (pinned to e72fd7aacb)

When it happens

Trigger: Thrown at app/src/ai/agent_sdk/integration.rs:308 when the library encounters an invalid state.

Common situations: See trigger scenarios.


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