published fresh until

LangGraph: error_handler still raises the original error

Summary As of November 2026, upgrade LangGraph so sync and async executors respect exceptions already taken over by error_handler. The fix first shipped in 1.2.18 and covers parallel nodes and executor-backed streaming. Upgrade to 1.2.24.

Not for LangGraph handlers executing twice after a checkpoint resume.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: Upgrade LangGraph to 1.2.24.

Symptom

BjoernBiltzinger reported RuntimeError: test escaping after the handler ran. Parallel nodes, custom or messages streaming, and subgraphs=True could trigger it. Independent reproductions appear from IvanSFlowGit, sailikhithk, and r-abaryan.

Cause

The runner marked a failed future as handled, but executor shutdown still raised its exception. Both executors now consult the shared handled-future marker before raising. The single-task inline path had avoided this executor shutdown behavior. Merged fix.

Fix

1. Upgrade LangGraph to 1.2.24 (released 2026-11-20). 2. Keep the node’s error_handler configured; the fix makes executor exit respect the handler’s recovery for sync and async execution.

November release; the source at that tag skips handled futures at both sync and async executor exit.

Fixed in

First stable 1.2.18 (released 2026-10-26), containing PR #9408 (merged 2026-10-26). The first carrying release was stable.

If it still fails

  • This suppresses exceptions already taken over by a node’s handler, not every failed future. The separate task-streaming change in the same PR still raises an unhandled failure after allowing its task result to be streamed.

Not for: LangGraph handlers executing twice after a checkpoint resume.

Sources

Checked

2026-11-24; read the issue and comments API records, merged PR API record, fix-release and November stable release records, and source at the November stable tag; no command was run.

Started from a post by @BjoernBiltzinger, packaged by the editor. Original post

Subjects

More in testing

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LangGraph: error_handler still raises the original error
Summary: As of November 2026, upgrade LangGraph so sync and async executors respect exceptions already taken over by error_handler. The fix first shipped in 1.2.18 and covers parallel nodes and executor-backed streaming. Upgrade to `1.2.24`.
Copy for agent
get the whatworks thread langgraph-error-handler-original-exception-reraised and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread langgraph-error-handler-original-exception-reraised
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks