langchain-ai/langgraph · error · ValueError
extension name must be non-empty.
Error message
extension name must be non-empty.
What it means
Error "extension name must be non-empty." thrown in langchain-ai/langgraph.
Source
Thrown at libs/sdk-py/langgraph_sdk/_async/stream.py:1113
self._thread._unregister_subscription(sub.id)
class _ExtensionsProjection:
"""Mapping from extension name to custom event payload stream.
Repeated access for the same `name` returns the cached projection so that
callers receive the same subscription handle across multiple references to
`thread.extensions["foo"]` within one session.
"""
def __init__(self, thread: AsyncThreadStream, namespace: list[str]) -> None:
self._thread = thread
self._namespace = namespace
self._cache: dict[str, _ExtensionProjection] = {}
def __getitem__(self, name: str) -> _ExtensionProjection:
if not name:
raise ValueError("extension name must be non-empty.")
if name not in self._cache:
self._cache[name] = _ExtensionProjection(
self._thread, name=name, namespace=self._namespace
)
return self._cache[name]
class _ExtensionProjection:
def __init__(
self,
thread: AsyncThreadStream,
*,
name: str,
namespace: list[str],
) -> None:
self._thread = thread
self._name = name
self._namespace = namespaceView on GitHub (pinned to 38031739e5)
When it happens
Trigger: Thrown at libs/sdk-py/langgraph_sdk/_async/stream.py:1113 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/7ae3ff76647bb937.
Report an issue: GitHub.