{"record":{"id":"a7e7be446fbe48d0","repo":"langchain-ai/langgraph","slug":"graph-graph-id-must-be-a-string-or-a-dictionar-a7e7be","errorCode":null,"errorMessage":"Graph '{graph_id}' must be a string or a dictionary with a 'path' key.","messagePattern":"Graph '(.+?)' must be a string or a dictionary with a 'path' key\\.","errorType":"validation","errorClass":"ValueError","httpStatus":null,"severity":"error","filePath":"libs/cli/langgraph_cli/uv_lock.py","lineNumber":802,"sourceCode":"            if \"path\" not in data:\n                raise ValueError(\n                    f\"Graph '{graph_id}' must contain a 'path' key if it is a dictionary.\"\n                )\n            config[\"graphs\"][graph_id][\"path\"] = _rewrite_uv_lock_import_path(\n                config_path,\n                data[\"path\"],\n                plan,\n                label=f\"graph '{graph_id}'\",\n            )\n        elif isinstance(data, str):\n            config[\"graphs\"][graph_id] = _rewrite_uv_lock_import_path(\n                config_path,\n                data,\n                plan,\n                label=f\"graph '{graph_id}'\",\n            )\n        else:\n            raise ValueError(\n                f\"Graph '{graph_id}' must be a string or a dictionary with a 'path' key.\"\n            )\n\n\ndef _update_uv_lock_component_path(\n    config_path: pathlib.Path,\n    config: Config,\n    plan: UvLockPlan,\n    *,\n    section: str,\n    key: str,\n    label: str,\n) -> None:\n    section_config = config.get(section)\n    if not isinstance(section_config, dict):\n        return\n\n    path_str = section_config.get(key)","sourceCodeStart":784,"sourceCodeEnd":820,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/cli/langgraph_cli/uv_lock.py#L784-L820","documentation":"Error \"Graph '{graph_id}' must be a string or a dictionary with a 'path' key.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/cli/langgraph_cli/uv_lock.py:802 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}