{"record":{"id":"c92362edb95b9d74","repo":"bytedance/deer-flow","slug":"openviking-trusted-mode-is-no-longer-supported-by","errorCode":null,"errorMessage":"OpenViking trusted mode is no longer supported by this backend; use a USER API key and configure owner_user_id","messagePattern":"OpenViking trusted mode is no longer supported by this backend; use a USER API key and configure owner_user_id","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"backend/packages/harness/deerflow/agents/memory/backends/openviking/config.py","lineNumber":56,"sourceCode":"    search_top_k: int\n    score_threshold: float | None\n    max_injection_chars: int\n    content_mode: Literal[\"auto\", \"abstract\", \"overview\", \"read\"]\n    injection_query: str\n    startup_policy: Literal[\"fail_fast\", \"warn\"]\n    read_failure_policy: Literal[\"fail_open\", \"raise\"]\n    write_failure_policy: Literal[\"log_and_drop\", \"raise\"]\n    allow_insecure_http: bool\n    max_seen_message_ids: int\n\n    @classmethod\n    def from_backend_config(\n        cls,\n        backend_config: dict[str, Any] | None,\n    ) -> OpenVikingConfig:\n        cfg = dict(backend_config or {})\n        if \"auth_mode\" in cfg or \"account\" in cfg:\n            raise ValueError(\"OpenViking trusted mode is no longer supported by this backend; use a USER API key and configure owner_user_id\")\n        removed_fields = sorted(_REMOVED_CUSTOM_HTTP_FIELDS.intersection(cfg))\n        if removed_fields:\n            raise ValueError(\"OpenViking custom HTTP client fields are no longer supported: \" + \", \".join(removed_fields))\n\n        retrieval = _mapping(cfg.pop(\"retrieval\", {}), \"retrieval\")\n        failure_policy = _mapping(\n            cfg.pop(\"failure_policy\", {}),\n            \"failure_policy\",\n        )\n        api_key_env = str(cfg.pop(\"api_key_env\", \"OPENVIKING_API_KEY\")).strip()\n        if not api_key_env:\n            raise ValueError(\"OpenViking api_key_env must not be empty\")\n\n        result = cls(\n            base_url=str(cfg.pop(\"base_url\", \"http://127.0.0.1:1933\")).rstrip(\"/\"),\n            storage_path=str(cfg.pop(\"storage_path\", \"\")),\n            owner_user_id=str(cfg.pop(\"owner_user_id\", \"\")).strip(),\n            api_key=os.environ.get(api_key_env, \"\").strip(),","sourceCodeStart":38,"sourceCodeEnd":74,"githubUrl":"https://github.com/bytedance/deer-flow/blob/1dd6ba1acb03700589994b0366c5d1c7d05e2eff/backend/packages/harness/deerflow/agents/memory/backends/openviking/config.py#L38-L74","documentation":"Error \"OpenViking trusted mode is no longer supported by this backend; use a USER API key and configure owner_user_id\" thrown in bytedance/deer-flow.","triggerScenarios":"Thrown at backend/packages/harness/deerflow/agents/memory/backends/openviking/config.py:56 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Configure a USER API key and owner_user_id in the OpenViking backend_config.","Remove legacy trusted-mode settings; they are rejected."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"1dd6ba1acb03700589994b0366c5d1c7d05e2eff","analyzedAt":"2026-08-14T21:20:34.804Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}