Solution skill
InvalidUpdateError: Expected dict, got [...]: nodes must return dicts
Complete solution
A node returned something that is not a dict. Every node must return a dict with keys from your state schema, on every code path.
TL;DR: A node returned something that is not a dict. Every node must return a dict with keys from your state schema, on every code path.
The error
InvalidUpdateError: Expected dict, got ['whoops']The fix
- Check every code path, including early returns and exception handlers. One path returning None or a list is enough to throw.
- Return only keys defined in your state schema. Extra keys are ignored or rejected depending on the setup; missing keys are fine (they just do not update).
- Nodes that only read state still return a dict; return an empty dict if there is nothing to update.
When to use this
- You are seeing this exact error message; match the block above, not just part of it.
- The failing call matches the scenario in the title: InvalidUpdateError.
- You want the fastest verified fix before digging through logs.
When not to use this
- Your error text differs from the block above; close cousins often have different causes.
- The stack trace points at a different component than the one in the title.
- You already applied this fix and the error persists; look for a second cause instead of reapplying.
Compatibility
- Not pinned to a specific version; follows current InvalidUpdateError behavior.
Also seen as
The broken node:
Evidence
Error catalog entry grounded in the official INVALIDGRAPHNODERETURNVALUE error page, verified 2026-09-26. Error page: https://docs.langchain.com/oss/python/langgraph/errors/INVALIDGRAPHNODERETURNVALUE
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_u0Vi-jGxPECd5WJD_tiWEA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">InvalidUpdateError: Expected dict, got [...]: nodes must return dicts <span>— Vectle</span></a>