{"record":{"id":"efa5038ecba66fd9","repo":"NousResearch/hermes-agent","slug":"op-read-returned-an-empty-value-for-reference-r","errorCode":null,"errorMessage":"op read returned an empty value for {reference!r}","messagePattern":"op read returned an empty value for (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"agent/secret_sources/onepassword.py","lineNumber":312,"sourceCode":"        ) from exc\n    except OSError as exc:\n        raise RuntimeError(f\"failed to invoke op: {exc}\") from exc\n\n    if proc.returncode != 0:\n        err = _scrub(proc.stderr or \"\")[:200]\n        if err:\n            raise RuntimeError(f\"op read failed for {reference!r}: {err}\")\n        raise RuntimeError(\n            f\"op read exited {proc.returncode} for {reference!r}\"\n        )\n\n    # `op` appends a trailing newline; strip only that so a value with\n    # intentional internal/edge spaces survives.  But a value that is empty or\n    # whitespace-only is treated as empty: applying it would silently clobber a\n    # good .env/shell credential with effectively nothing.\n    value = (proc.stdout or \"\").rstrip(\"\\r\\n\")\n    if not value.strip():\n        raise RuntimeError(f\"op read returned an empty value for {reference!r}\")\n    return value\n\n\n# ---------------------------------------------------------------------------\n# Fetch\n# ---------------------------------------------------------------------------\n\n\ndef fetch_onepassword_secrets(\n    *,\n    references: Dict[str, str],\n    account: str = \"\",\n    token_env: str = _DEFAULT_TOKEN_ENV,\n    binary: Optional[Path] = None,\n    binary_path: str = \"\",\n    use_cache: bool = True,\n    cache_ttl_seconds: float = 300,\n    home_path: Optional[Path] = None,","sourceCodeStart":294,"sourceCodeEnd":330,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/secret_sources/onepassword.py#L294-L330","documentation":"Error \"op read returned an empty value for {reference!r}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/secret_sources/onepassword.py:312 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Verify the referenced 1Password field actually contains a value.","Fill in the field in 1Password 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-15T17:31:12.345Z"}