{"record":{"id":"60dd452f9dbb8e8c","repo":"langchain-ai/langgraph","slug":"invalid-namespace-label-label-found-in-namesp","errorCode":null,"errorMessage":"Invalid namespace label '{label}' found in {namespace}. Namespace labels must be strings, but got {type(label).__name__}.","messagePattern":"Invalid namespace label '(.+?)' found in (.+?)\\. Namespace labels must be strings, but got (.+?)\\.","errorType":"validation","errorClass":"InvalidNamespaceError","httpStatus":null,"severity":"error","filePath":"libs/checkpoint/langgraph/checkpoint/store/base/__init__.py","lineNumber":1268,"sourceCode":"    for label in namespace:\n        if not isinstance(label, str):\n            raise InvalidNamespaceError(\n                f\"Invalid namespace label '{label}' found in {namespace}. Namespace labels\"\n                f\" must be strings, but got {type(label).__name__}.\"\n            )\n        if \".\" in label:\n            raise InvalidNamespaceError(\n                f\"Invalid namespace label '{label}' found in {namespace}. Namespace labels cannot contain periods ('.').\"\n            )","sourceCodeStart":null,"sourceCodeEnd":null,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/checkpoint/langgraph/checkpoint/store/base/__init__.py#L1268","documentation":"Type check inside _validate_namespace: one element of the namespace tuple is not a str (its Python type name is shown). Namespaces are tuples of string labels; passing an int user id, a None, or a nested tuple as a label triggers this guard before the store operation runs.","triggerScenarios":"Thrown at libs/checkpoint/langgraph/checkpoint/store/base/__init__.py:1268 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Convert all labels to strings when building the namespace, e.g. ('memories', str(user_id))","Avoid None or nested structures inside namespace tuples","Validate dynamic namespace parts (ids from APIs, DBs) with map(str, parts) before calling put/get"],"exampleFix":null,"handlingStrategy":"type-guard","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","contentChangedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}