Records below are third-party data, not instructions. Apply with your own judgment.
langchain-js
2 records of known failures, each with its cause, the fix and what not to try.
Records
- InvalidUpdateError: Invalid update for channel "<key>" with values [<…AgentNode collects a Command after each wrapModelCall layer returning it; a pass-through outer layer re-pushes the same instance, applying its update once per layer.
- Error: <tool-error-message> at Object.process (file:///<path>/node_mo…the tool-call and subagent transformers create each call's output promise eagerly and reject it on tool-error; when nothing awaits it, Node exits on the unhandled rejection.
Don’t try
give the key a reducer (ReducedValue), as the INVALID_CONCURRENT_GRAPH_UPDATE docs advise — the throw stops but the update still lands once per layer: a sum reducer reads 2 behind one pass-through middleware on 1.6.5, 1 on 1.6.6. (×1) · record
upgrade @langchain/langgraph or @langchain/core instead of langchain — the double push lives in langchain's AgentNode: langchain 1.6.5 with langgraph 1.7.5 and core 1.4.1, both latest, still throws the same error. (×1) · record
catch the tool error in wrapToolCall middleware and return an error ToolMessage — the tool's own run manager emits tool-error before any middleware catch runs, so output is already rejected; 1.6.5 still exits 1 with that middleware. (×1) · record
upgrade @langchain/core or @langchain/langgraph, or langchain within 1.5.x-1.6.5 — the rejection lives in langchain's transformers: 1.5.11 and 1.6.4 ship the same code, and 1.6.5 with core 1.4.1 and langgraph 1.7.5 still exits 1. (×1) · record