{"record":{"id":"3a1ef362ead374f2","repo":"zed-industries/zed","slug":"could-not-locate-run-run-id-in-the-local-run-i","errorCode":null,"errorMessage":"could not locate run '{run_id}' in the local run index ({run_index.index_path()}). Pass --experiment-name (and --namespace if it isn't yours). The index is written automatically when you launch a run from this machine.","messagePattern":"could not locate run '(.+?)' in the local run index \\((.+?)\\)\\. Pass --experiment-name \\(and --namespace if it isn't yours\\)\\. The index is written automatically when you launch a run from this machine\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"crates/eval_cli/zed_eval/common.py","lineNumber":208,"sourceCode":"    When `--experiment-name` is given, behaves exactly as before: namespace comes\n    from `--namespace` or the local git default. When it is omitted, the run is\n    located via the launch-time local run index (`run_index`) so a bare run id is\n    enough. Raises a friendly error pointing at the explicit flags when the run\n    can't be found.\n    \"\"\"\n    from . import run_index\n\n    explicit_experiment = getattr(args, \"experiment_name\", None)\n    explicit_namespace = getattr(args, \"namespace\", None)\n    if explicit_experiment:\n        namespace = explicit_namespace or source.default_namespace()\n        return (\n            source.sanitize_namespace(namespace),\n            source.sanitize_namespace(explicit_experiment),\n        )\n    entry = run_index.lookup(run_id)\n    if not entry:\n        raise ValueError(\n            f\"could not locate run '{run_id}' in the local run index \"\n            f\"({run_index.index_path()}). Pass --experiment-name (and \"\n            \"--namespace if it isn't yours). The index is written automatically \"\n            \"when you launch a run from this machine.\"\n        )\n    namespace = (\n        explicit_namespace or entry.get(\"namespace\") or source.default_namespace()\n    )\n    return (\n        source.sanitize_namespace(namespace),\n        source.sanitize_namespace(entry[\"experiment_name\"]),\n    )\n","sourceCodeStart":190,"sourceCodeEnd":221,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/eval_cli/zed_eval/common.py#L190-L221","documentation":"Zed's cloud web-search provider bails with the raw HTTP status and response body whenever the search endpoint answers with a non-2xx status. The body is included verbatim because it usually names the real cause: invalid or expired credentials, rate limiting/quota, or an upstream outage.","triggerScenarios":"response.status().is_success() is false after POSTing the search request: 401/403 for a bad or missing API key, 429 for rate limit or exhausted quota, 5xx for a provider outage; a proxy intercepting the request can also produce an unexpected status.","commonSituations":"Subscription or trial lapsed so the key stops working; free-tier quota exhausted mid-session; regional blocking; scheduled provider maintenance windows.","solutions":["Read the Status and Body in the message: 401/403 → re-enter or refresh the API key/provider sign-in; 429 → wait for the quota window to reset; 5xx → retry later","Verify the web-search provider settings and credentials in Zed settings","For 429/5xx, retry with backoff instead of hammering the endpoint"],"exampleFix":"// before\nlet results = search(query).await?; // non-2xx bubbles as one opaque string\n\n// after\nlet results = match search(query).await {\n    Ok(results) => results,\n    Err(err) if err.to_string().contains(\"Status: 429\") => {\n        backoff_delay().await;\n        search(query).await?\n    }\n    Err(err) => return Err(err),\n};","handlingStrategy":"retry","validationCode":"// Ensure credentials exist before searching:\nif !provider_has_api_key_configured(cx) {\n    return Err(anyhow!(\"configure the web search API key before searching\"));\n}","typeGuard":null,"tryCatchPattern":"let mut attempt = 0;\nloop {\n    match search(&query).await {\n        Ok(results) => break Ok(results),\n        Err(err) if attempt < 3 && err.to_string().contains(\"Status: 429\") => {\n            exponential_backoff(attempt).await; // honor rate limits\n            attempt += 1;\n        }\n        Err(err) if err.to_string().contains(\"Status: 40\") => break Err(err), // auth: do not retry\n        Err(err) => break Err(err),\n    }\n}","preventionTips":["Retry only 429/5xx with backoff; never retry 401/403 — fix the key instead","Log the response body once per failure; it names the quota or credential problem","Cache recent results to stay under tight quotas during interactive sessions"],"tags":["web-search","http","api-error","rate-limit"],"backgroundTag":"http-error-response","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}