{"record":{"id":"48be13d1322d5bfa","repo":"langchain-ai/langgraph","slug":"namespace-labels-cannot-be-empty-strings-got-lab","errorCode":null,"errorMessage":"Namespace labels cannot be empty strings. Got {label} in {namespace}","messagePattern":"Namespace labels cannot be empty strings\\. Got (.+?) in (.+?)","errorType":"validation","errorClass":"InvalidNamespaceError","httpStatus":null,"severity":"error","filePath":"libs/checkpoint/langgraph/checkpoint/store/base/__init__.py","lineNumber":1277,"sourceCode":"        elif not label:\n            raise InvalidNamespaceError(\n                f\"Namespace labels cannot be empty strings. Got {label} in {namespace}\"\n            )\n    if namespace[0] == \"langgraph\":\n        raise InvalidNamespaceError(\n            f'Root label for namespace cannot be \"langgraph\". Got: {namespace}'\n        )","sourceCodeStart":null,"sourceCodeEnd":null,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/checkpoint/langgraph/checkpoint/store/base/__init__.py#L1277","documentation":"Content check inside _validate_namespace: a label in the namespace is the empty string ''. This typically results from a trailing/leading/double separator when building the tuple (e.g. ('docs', '') from 'docs.'.split('.') or tuple(parts) with a blank element), which would create ambiguous or colliding paths.","triggerScenarios":"Thrown at libs/checkpoint/langgraph/checkpoint/store/base/__init__.py:1277 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Filter out empty parts: tuple(p for p in parts if p)","Fix string splitting that yields blanks, e.g. strip separators before split and drop empty segments","Log the offending namespace to find which upstream call produces the blank label"],"exampleFix":null,"handlingStrategy":"validation","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"}