{"record":{"id":"0933c924a2adca06","repo":"tinyhumansai/openhuman","slug":"authorize-failed-after-retries","errorCode":null,"errorMessage":"authorize failed after retries","messagePattern":"authorize failed after retries","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/openhuman/integrations/composio/oauth_handoff.rs","lineNumber":185,"sourceCode":"                if is_authorize_rate_limited(&rendered)\n                    && attempt < AUTHORIZE_RATE_LIMIT_MAX_ATTEMPTS\n                {\n                    tracing::warn!(\n                        attempt,\n                        max_attempts = AUTHORIZE_RATE_LIMIT_MAX_ATTEMPTS,\n                        sleep_secs = delay.as_secs(),\n                        \"[composio][oauth] authorize rate-limited; backing off (#1952)\"\n                    );\n                    tokio::time::sleep(delay).await;\n                    delay = (delay * 2).min(AUTHORIZE_RATE_LIMIT_MAX_BACKOFF);\n                    last_err = Some(e);\n                    continue;\n                }\n                return Err(e);\n            }\n        }\n    }\n    Err(last_err.unwrap_or_else(|| anyhow::anyhow!(\"authorize failed after retries\")))\n}\n\n#[cfg(test)]\n#[path = \"oauth_handoff_tests.rs\"]\nmod tests;\n","sourceCodeStart":167,"sourceCodeEnd":191,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/749120085864ce16e0f273c7b86fac7740b39c5b/src/openhuman/integrations/composio/oauth_handoff.rs#L167-L191","documentation":"authorize_with_rate_limit_retry exhausted its bounded retry loop (exponential backoff up to AUTHORIZE_RATE_LIMIT_MAX_ATTEMPTS, #1952) and the authorize call still fails. Whatever the terminal underlying error was, it survived the backoff cycle.","triggerScenarios":"Thrown at src/openhuman/integrations/composio/oauth_handoff.rs:185 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Wait longer than the built-in backoff window (minutes) and retry the connect flow","Inspect the inner authorize error to distinguish persistent 429 from a different terminal failure","Avoid repeated Connect clicks — they extend Meta-side throttling"],"exampleFix":null,"handlingStrategy":"retry","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"749120085864ce16e0f273c7b86fac7740b39c5b","analyzedAt":"2026-08-17T21:21:45.363Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}