{"record":{"id":"d5c3996e32105d3d","repo":"Panniantong/Agent-Reach","slug":"no-cookies-found-make-sure-you-re-logged-into-the","errorCode":null,"errorMessage":"No cookies found. Make sure you're logged into the platforms in {browser}.","messagePattern":"No cookies found\\. Make sure you're logged into the platforms in (.+?)\\.","errorType":"console","errorClass":"SystemExit","httpStatus":null,"severity":"warning","filePath":"agent_reach/cli.py","lineNumber":1435,"sourceCode":"                targets = getattr(result, \"targets\", ())\n            else:\n                legacy_result = cast(tuple[str, bool, str], result)\n                result_platform, success, message = legacy_result\n                targets = ()\n            if success:\n                print(f\"  ✅ {result_platform}: {message}\")\n                if targets:\n                    print(f\"     写入：{', '.join(targets)}\")\n                found_any = True\n            else:\n                print(f\"  -- {result_platform}: {message}\")\n\n        print()\n        if found_any:\n            print(\"✅ Cookies configured! Run `agent-reach doctor` to see updated status.\")\n        else:\n            print(f\"No cookies found. Make sure you're logged into the platforms in {browser}.\")\n            raise SystemExit(1)\n        return\n\n    # ── Manual configure ──\n    if not args.key:\n        print(\"Usage: agent-reach configure <key> [--stdin]\")\n        print(\"   Omit the value to enter it through a hidden prompt.\")\n        print(\n            \"   or: agent-reach configure --from-browser chrome \"\n            \"--platform xueqiu\"\n        )\n        return\n\n    value = _read_configure_value(args)\n    if not value:\n        print(f\"Missing value for {args.key}\")\n        raise SystemExit(1)\n\n    if args.key == \"proxy\":","sourceCodeStart":1417,"sourceCodeEnd":1453,"githubUrl":"https://github.com/Panniantong/Agent-Reach/blob/93ae1d18c37b707dec053c7c4f9d91cd8ef8943d/agent_reach/cli.py#L1417-L1453","documentation":"After a --from-browser extraction run, if every platform attempt reports failure (found_any stays False), the CLI prints 'No cookies found. Make sure you're logged into the platforms in <browser>.' and exits 1. The per-platform '-- <platform>: <message>' lines above it carry the specific reasons.","triggerScenarios":"`agent-reach configure --from-browser chrome` while not logged into any requested platform in that browser, or while every extraction path fails (locked cookie store, unsupported platform combination), so no platform yields a success result.","commonSituations":"User is logged in under a different Chrome profile than the default one scanned; browser was running and its cookie DB was locked; user asked for --platform xueqiu but is only logged in on Firefox; Safari on newer macOS requiring full-disk access for the terminal.","solutions":["Log in to the target platform(s) in the named browser, quit the browser completely, then re-run","Read the per-platform '--' lines above the error — they state the actual failure per platform","If you use multiple profiles, re-run with --profile matching the profile that has the logins","Fall back to manual configuration via Cookie-Editor export and `agent-reach configure <key> --stdin`"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"# Pre-flight in the shell before extraction:\n#   1. browser fully quit? (pgrep -x chrome && echo 'close chrome first')\n#   2. logged in? open the platform in that browser and confirm the session\n#   3. correct profile? ls ~/Library/Application\\ Support/Google/Chrome/ | grep ^Profile\n","typeGuard":null,"tryCatchPattern":"# Treat exit 1 + 'No cookies found' as a soft failure with a hint, then fall back:\n#   agent-reach configure --from-browser chrome --platform xueqiu \\\n#     || agent-reach configure xhs-cookies --stdin < cookie-editor-header.txt","preventionTips":["Read the per-platform '--' result lines — they carry the real reason extraction failed","Log in to each target platform in the exact browser/profile you name on the command line","Keep the Cookie-Editor manual export as the reliable fallback for every cookie-based platform"],"tags":["cli","configure","browser","cookies","exit-code-1"],"backgroundTag":null,"analyzedSha":"93ae1d18c37b707dec053c7c4f9d91cd8ef8943d","analyzedAt":"2026-08-14T22:54:06.735Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}