{"record":{"id":"4e6e36e612e18997","repo":"langchain-ai/langgraph","slug":"ttl-is-not-supported-by-self-class-name","errorCode":null,"errorMessage":"TTL is not supported by {self.__class__.__name__}. Use a store implementation that supports TTL or set ttl=None.","messagePattern":"TTL is not supported by (.+?)\\. Use a store implementation that supports TTL or set ttl=None\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"error","filePath":"libs/checkpoint/langgraph/checkpoint/store/base/__init__.py","lineNumber":921,"sourceCode":"        _validate_namespace(namespace)\n        if ttl not in (NOT_PROVIDED, None) and not self.supports_ttl:\n            raise NotImplementedError(\n                f\"TTL is not supported by {self.__class__.__name__.strip()}. \"\n                f\"Use a store implementation that supports TTL or set ttl=None.\"\n            )\n        self.batch(\n            [\n                PutOp(\n                    namespace,\n                    str(key),\n                    value,\n                    index=index,\n                    ttl=_ensure_ttl(self.ttl_config, ttl),\n                )\n            ]\n        )","sourceCodeStart":null,"sourceCodeEnd":null,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/checkpoint/langgraph/checkpoint/store/base/__init__.py#L921","documentation":"Capability guard in BaseStore.put: a ttl argument other than NOT_PROVIDED/None was passed to a store whose supports_ttl flag is False. The in-memory BaseStore does not implement per-item expiry, so the TTL request is rejected up front rather than silently ignored.","triggerScenarios":"Thrown at libs/checkpoint/langgraph/checkpoint/store/base/__init__.py:921 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set ttl=None when using stores without TTL support (e.g. InMemoryStore)","Switch to a TTL-capable backend such as AsyncPostgresStore configured with a ttl_config","Implement supports_ttl and a ttl_config in a custom BaseStore subclass to enable the feature"],"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"}