{"record":{"id":"3228b45da1216d04","repo":"langchain-ai/langgraph","slug":"emptychannelerror","errorCode":null,"errorMessage":"EmptyChannelError","messagePattern":"EmptyChannelError","errorType":"exception","errorClass":"EmptyChannelError","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/channels/any_value.py","lineNumber":65,"sourceCode":"        empty = self.__class__(self.typ, self.key)\n        if checkpoint is not MISSING:\n            empty.value = checkpoint\n        return empty\n\n    def update(self, values: Sequence[Value]) -> bool:\n        if len(values) == 0:\n            if self.value is MISSING:\n                return False\n            else:\n                self.value = MISSING\n                return True\n\n        self.value = values[-1]\n        return True\n\n    def get(self) -> Value:\n        if self.value is MISSING:\n            raise EmptyChannelError()\n        return self.value\n\n    def is_available(self) -> bool:\n        return self.value is not MISSING\n\n    def checkpoint(self) -> Value:\n        return self.value\n","sourceCodeStart":47,"sourceCodeEnd":73,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/channels/any_value.py#L47-L73","documentation":"LastValueChannel.get raises the sentinel EmptyChannelError when the channel's value is MISSING — i.e. no value has been written yet (first super-step). It is an internal control-flow signal that callers catch to treat the channel as empty, not a user-facing failure.","triggerScenarios":"Thrown at libs/langgraph/langgraph/channels/any_value.py:65 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the channel only after a node has written to it, or give the state key a default via Annotated[T, ..., default].","Catch EmptyChannelError in code that reads channels before the first update."],"exampleFix":null,"handlingStrategy":"try-catch","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"}