{"record":{"id":"560b1f72fffc5960","repo":"langchain-ai/langgraph","slug":"streamchannel-has-not-been-bound-yet-register-the","errorCode":null,"errorMessage":"StreamChannel has not been bound yet. Register the transformer with a StreamMux first.","messagePattern":"StreamChannel has not been bound yet\\. Register the transformer with a StreamMux first\\.","errorType":"exception","errorClass":"TypeError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/stream/stream_channel.py","lineNumber":167,"sourceCode":"        Args:\n            err: The exception to surface to the subscriber.\n        \"\"\"\n        self._error = err\n        self._closed = True\n\n    # ------------------------------------------------------------------\n    # Sync iteration (caller-driven pump)\n    # ------------------------------------------------------------------\n\n    def __iter__(self) -> Iterator[T]:\n        \"\"\"Subscribe and return a sync cursor. Can be called only once.\n\n        Raises:\n            TypeError: If the channel is unbound or bound to async mode.\n            RuntimeError: If the channel already has a subscriber.\n        \"\"\"\n        if self._is_async is None:\n            raise TypeError(\n                \"StreamChannel has not been bound yet. \"\n                \"Register the transformer with a StreamMux first.\"\n            )\n        if self._is_async:\n            raise TypeError(\n                \"This StreamChannel is bound to async mode — use 'async for' instead.\"\n            )\n        if self._subscribed:\n            raise RuntimeError(\n                \"StreamChannel already has a subscriber; use .tee(n) for fan-out.\"\n            )\n        self._subscribed = True\n        return self._sync_cursor()\n\n    def _sync_cursor(self) -> Iterator[T]:\n        while True:\n            if self._items:\n                _stamp, item = self._items.popleft()","sourceCodeStart":149,"sourceCodeEnd":185,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/stream/stream_channel.py#L149-L185","documentation":"Error \"StreamChannel has not been bound yet. Register the transformer with a StreamMux first.\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/stream/stream_channel.py:167 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"38031739e551638e373fb553453256c23feeb41f","analyzedAt":"2026-08-26T18:02:49.312Z","schemaVersion":2},"datasetVersion":"2026-08-26T21:11:00.512Z"}