{"record":{"id":"5e0ff892e38f6cc7","repo":"warpdotdev/warp","slug":"error-polling-oauth-status-err","errorCode":null,"errorMessage":"Error polling OAuth status: {err}","messagePattern":"Error polling OAuth status: (.+?)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/src/ai/agent_sdk/agent_config.rs","lineNumber":183,"sourceCode":"                                        ctx.terminate_app(\n                                            TerminationMode::ForceTerminate,\n                                            Some(Err(anyhow::anyhow!(\n                                                \"GitHub authorization expired. Please try again.\"\n                                            ))),\n                                        );\n                                    }\n                                    Ok(_) => {\n                                        ctx.terminate_app(\n                                            TerminationMode::ForceTerminate,\n                                            Some(Err(anyhow::anyhow!(\n                                                \"Unexpected OAuth status\"\n                                            ))),\n                                        );\n                                    }\n                                    Err(err) => {\n                                        ctx.terminate_app(\n                                            TerminationMode::ForceTerminate,\n                                            Some(Err(anyhow::anyhow!(\n                                                \"Error polling OAuth status: {err}\"\n                                            ))),\n                                        );\n                                    }\n                                }\n                            });\n                        }\n                        (Some(auth_url), None) => {\n                            println!(\"\\nAuthorize access here: {auth_url}\\n\");\n                            println!(\"After authorizing, please re-run this command.\");\n                            ctx.terminate_app(TerminationMode::ForceTerminate, None);\n                        }\n                        _ => {\n                            ctx.terminate_app(\n                                TerminationMode::ForceTerminate,\n                                Some(Err(anyhow::anyhow!(\n                                    \"Cannot list agents: authorization required but no auth flow provided\"\n                                ))),","sourceCodeStart":165,"sourceCodeEnd":201,"githubUrl":"https://github.com/warpdotdev/warp/blob/e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc/app/src/ai/agent_sdk/agent_config.rs#L165-L201","documentation":"The spawned poll future for the OAuth connect transaction returned Err (app/src/ai/agent_sdk/agent_config.rs:183 Err arm); the message interpolates the error with inline {err} via anyhow. This is a transport/API-level failure of the polling itself, distinct from any transaction status.","triggerScenarios":"Network drop while polling the OAuth connect tx status; the GraphQL endpoint returning an error payload or 5xx while the browser flow is still pending.","commonSituations":"Flaky connectivity mid-auth; brief server-side errors during deploys; proxies killing long-polling requests.","solutions":["Check connectivity and re-run the command","Retry once — transient polling failures commonly clear","If persistent, read the embedded {err} text to see which request failed and check service status"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat OAuth polling errors as transient; retry the command once before investigating","Keep the auth window short so fewer polls are exposed to network flakiness"],"tags":["github","oauth","network","cli"],"backgroundTag":null,"analyzedSha":"e72fd7aacbbb2236d9b3be2aad7e7178fe94b4bc","analyzedAt":"2026-08-16T08:27:25.381Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}