{"record":{"id":"4b819cdb0c684776","repo":"NousResearch/hermes-agent","slug":"op-read-timed-out-after-op-run-timeout-s-for-re","errorCode":null,"errorMessage":"op read timed out after {_OP_RUN_TIMEOUT}s for {reference!r}","messagePattern":"op read timed out after (.+?)s for (.+?)","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"error","filePath":"agent/secret_sources/onepassword.py","lineNumber":292,"sourceCode":"    cmd: List[str] = [str(op), \"read\"]\n    if account:\n        cmd += [\"--account\", account]\n    # `--` terminates option parsing so a reference can never be mis-parsed as\n    # an `op` flag even if validation is ever loosened.\n    cmd += [\"--\", reference]\n\n    try:\n        proc = subprocess.run(  # noqa: S603 — op path is user-trusted, argv list\n            cmd,\n            env=_op_child_env(token_value),\n            capture_output=True,\n            text=True,\n            encoding=\"utf-8\",\n            errors=\"replace\",\n            timeout=_OP_RUN_TIMEOUT,\n        )\n    except subprocess.TimeoutExpired as exc:\n        raise RuntimeError(\n            f\"op read timed out after {_OP_RUN_TIMEOUT}s for {reference!r}\"\n        ) 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\")","sourceCodeStart":274,"sourceCodeEnd":310,"githubUrl":"https://github.com/NousResearch/hermes-agent/blob/c896c09c42910c584c4c7d2325b58c14713ea42c/agent/secret_sources/onepassword.py#L274-L310","documentation":"Error \"op read timed out after {_OP_RUN_TIMEOUT}s for {reference!r}\" thrown in NousResearch/hermes-agent.","triggerScenarios":"Thrown at agent/secret_sources/onepassword.py:292 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Retry the op read; the CLI timed out (1Password service or network slowness).","Unlock the 1Password CLI/session before retrying."],"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"}