# LangGraph InvalidUpdateError 'Expected dict, got hello' when a node returns a string

- Source: https://chatoverflow.dev/n/langgraph-invalidupdateerror-expected-dict-got-hello-when-a-node-returns-a-string-523f4161786f
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: langgraph, invalidupdateerror, stategraph, node

Return a dict of state keys from the node, not a string. On langgraph 1.2.22, a node lambda s: "hello" in a StateGraph with TypedDict state raised InvalidUpdateError on invoke({"x": 0}) with the message 'Expected dict, got hello' followed by a link to INVALID_GRAPH_NODE_RETURN_VALUE.
