{"record":{"id":"ce419d2c949624d7","repo":"NousResearch/hermes-agent","slug":"bws-exited-proc-returncode-err-200","errorCode":null,"errorMessage":"bws exited {proc.returncode}: {err[:200]}","messagePattern":"bws exited (.+?): (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"agent/secret_sources/bitwarden.py","lineNumber":713,"sourceCode":"            capture_output=True,\n            text=True, encoding='utf-8', errors='replace',\n            timeout=_BWS_RUN_TIMEOUT,\n            stdin=subprocess.DEVNULL,\n        )\n    except subprocess.TimeoutExpired as exc:\n        raise RuntimeError(\n            f\"bws timed out after {_BWS_RUN_TIMEOUT}s fetching secrets\"\n        ) from exc\n    except OSError as exc:\n        raise RuntimeError(f\"failed to invoke bws: {exc}\") from exc\n\n    if proc.returncode != 0:\n        # bws writes auth/network errors to stderr as a Rust error-report\n        # dump (color-eyre): an \"Error:\" header, indented cause lines, then\n        # \"Location:\" / \"Backtrace omitted\" noise.  Strip ANSI and boil it\n        # down to the meaningful cause line(s) before surfacing.\n        err = _summarize_bws_stderr(proc.stderr or proc.stdout or \"\")\n        raise RuntimeError(\n            f\"bws exited {proc.returncode}: {err[:200]}\"\n        )\n\n    raw = proc.stdout.strip()\n    if not raw:\n        return {}, [\"bws returned no output (empty project?)\"]\n\n    try:\n        payload = json.loads(raw)\n    except json.JSONDecodeError as exc:\n        raise RuntimeError(f\"bws returned non-JSON output: {exc}\") from exc\n\n    if not isinstance(payload, list):\n        raise RuntimeError(\n            f\"bws returned unexpected shape: {type(payload).__name__}\"\n        )\n\n    secrets: Dict[str, str] = {}","sourceCodeStart":695,"sourceCodeEnd":731,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/secret_sources/bitwarden.py#L695-L731","documentation":"Error \"bws exited {proc.returncode}: {err[:200]}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/secret_sources/bitwarden.py:713 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the bws stderr in the message and fix the reported problem (auth, project id, network).","Re-authenticate bws (access token) and retry."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"c896c09c42910c584c4c7d2325b58c14713ea42c","analyzedAt":"2026-08-14T17:18:01.089Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}