langchain-ai/langgraph · error · NotImplementedError

TTL is not supported by

Error message

TTL is not supported by {self.__class__.__name__}. Use a store implementation that supports TTL or set ttl=None.

What it means

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.

Solutions

  1. Set ttl=None when using stores without TTL support (e.g. InMemoryStore)
  2. Switch to a TTL-capable backend such as AsyncPostgresStore configured with a ttl_config
  3. Implement supports_ttl and a ttl_config in a custom BaseStore subclass to enable the feature
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at libs/checkpoint/langgraph/checkpoint/store/base/__init__.py:921 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26). Data as JSON: /api/errors/4e6e36e612e18997. Report an issue: GitHub.

Appendix: source

Thrown at libs/checkpoint/langgraph/checkpoint/store/base/__init__.py:921

        _validate_namespace(namespace)
        if ttl not in (NOT_PROVIDED, None) and not self.supports_ttl:
            raise NotImplementedError(
                f"TTL is not supported by {self.__class__.__name__.strip()}. "
                f"Use a store implementation that supports TTL or set ttl=None."
            )
        self.batch(
            [
                PutOp(
                    namespace,
                    str(key),
                    value,
                    index=index,
                    ttl=_ensure_ttl(self.ttl_config, ttl),
                )
            ]
        )

View on GitHub (pinned to 38031739e5)