{"record":{"id":"19274608c4dcf9e9","repo":"langchain-ai/langgraph","slug":"remoteexception","errorCode":null,"errorMessage":"RemoteException","messagePattern":"RemoteException","errorType":"exception","errorClass":"RemoteException","httpStatus":null,"severity":"error","filePath":"libs/langgraph/langgraph/pregel/remote.py","lineNumber":846,"sourceCode":"            # raise ParentCommand exception for command events\n            if mode == \"command\" and chunk.data.get(\"graph\") == Command.PARENT:\n                raise ParentCommand(Command(**chunk.data))\n            # prepend caller ns (as it is not passed to remote graph)\n            if caller_ns := (config or {}).get(CONF, {}).get(CONFIG_KEY_CHECKPOINT_NS):\n                caller_ns = tuple(caller_ns.split(NS_SEP))\n                ns = caller_ns + ns\n            # stream to parent stream\n            if stream is not None and mode in stream.modes:\n                stream((ns, mode, chunk.data))\n            # raise interrupt or errors\n            if chunk.event.startswith(\"updates\"):\n                if isinstance(chunk.data, dict) and INTERRUPT in chunk.data:\n                    if caller_ns:\n                        raise GraphInterrupt(\n                            [Interrupt(**i) for i in chunk.data[INTERRUPT]]\n                        )\n            elif chunk.event.startswith(\"error\"):\n                raise RemoteException(chunk.data)\n            # filter for what was actually requested\n            if mode not in requested:\n                continue\n\n            if chunk.event.startswith(\"messages\"):\n                chunk = chunk._replace(data=tuple(chunk.data))\n\n            # emit chunk\n            if version == \"v2\":\n                ints: tuple[Interrupt, ...] = ()\n                if mode == \"values\" and isinstance(chunk.data, dict):\n                    ints = tuple(\n                        Interrupt(**i) if isinstance(i, dict) else i\n                        for i in chunk.data.pop(INTERRUPT, ())\n                    )\n                yield {\"type\": mode, \"ns\": ns, \"data\": chunk.data, \"interrupts\": ints}\n            elif subgraphs:\n                if NS_SEP in chunk.event:","sourceCodeStart":828,"sourceCodeEnd":864,"githubUrl":"https://github.com/langchain-ai/langgraph/blob/38031739e551638e373fb553453256c23feeb41f/libs/langgraph/langgraph/pregel/remote.py#L828-L864","documentation":"Error \"RemoteException\" thrown in langchain-ai/langgraph.","triggerScenarios":"Thrown at libs/langgraph/langgraph/pregel/remote.py:846 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"}