{"record":{"id":"d1e3a819ce2d2d6c","repo":"langchain-ai/langgraph","slug":"run-id-must-be-a-uuid-or-none","errorCode":null,"errorMessage":"run_id must be a UUID or None","messagePattern":"run_id must be a UUID or None","errorType":"validation","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/callbacks.py","lineNumber":204,"sourceCode":"        )\n    if isinstance(callbacks, GraphCallbackHandler):\n        return cls((callbacks,), run_id=run_id)\n    if isinstance(callbacks, (str, bytes)) or not isinstance(callbacks, Sequence):\n        raise TypeError(\"callbacks must be a handler, sequence, or manager\")\n    return cls(_filter_graph_handlers(list(callbacks)), run_id=run_id)\n\n\ndef _copy_graph_manager(\n    manager: _GraphCallbackManager | _AsyncGraphCallbackManager,\n    cls: type[_GraphManagerT],\n    run_id: UUID | None | object,\n) -> _GraphManagerT:\n    resolved_run_id: UUID | None\n    if run_id is _MISSING:\n        resolved_run_id = manager.run_id\n    else:\n        if run_id is not None and not isinstance(run_id, UUID):\n            raise TypeError(\"run_id must be a UUID or None\")\n        resolved_run_id = run_id\n\n    return cls(\n        handlers=_filter_graph_handlers(manager.handlers),\n        inheritable_handlers=_filter_graph_handlers(manager.inheritable_handlers),\n        parent_run_id=manager.parent_run_id,\n        tags=manager.tags.copy(),\n        inheritable_tags=manager.inheritable_tags.copy(),\n        metadata=manager.metadata.copy(),\n        inheritable_metadata=manager.inheritable_metadata.copy(),\n        run_id=resolved_run_id,\n    )\n\n\nclass _GraphCallbackManager(BaseCallbackManager):\n    \"\"\"Sync dispatcher for graph lifecycle events.\"\"\"\n\n    run_id: UUID | None","sourceCodeStart":186,"sourceCodeEnd":222,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/callbacks.py#L186-L222","documentation":"Error \"run_id must be a UUID or None\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/callbacks.py:204 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"}