published fresh until

LangGraph: sync wait returns errors instead of raising

Summary As of November 2026, upgrade langgraph-sdk to 0.4.14 so synchronous runs.wait raises on failed runs. Keep raise_error=True.

Not for LangGraph update_state erasing a thread's messages.

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-sdk to 0.4.14 and retain raise_error=True when failed runs should raise.

Symptom

{'__error__': {'error': 'RuntimeError', 'message': 'boom'}} is returned as an ordinary result by SyncRunsClient.wait(..., raise_error=True). stacy9966 reported this on langgraph-sdk 0.4.2. Other users commented on the issue: Solaris-star; IgorGanapolsky; Shubham2900.

Cause

The synchronous client sent the option to the server and returned the response directly. The server ignores that option; the client must inspect the error envelope and raise locally, as the asynchronous client already did.

Fix

1. Upgrade langgraph-sdk to 0.4.14 (as of November 2026). (source) 2. Keep raise_error=True (the default) to raise when the response contains an error object. (source) 3. If your application intentionally reads the error envelope, pass raise_error=False to keep receiving it as a result. (source)

Fixed in

Fixed in sdk==0.4.10 (released 2026-10-26). PR #9399 merged 2026-10-26.

If it still fails

  • This changes client handling of failed runs; it does not remove the underlying run failure.
  • The fixed implementation raises an exception with the reported error name and message; it does not instantiate the remote exception class.

Not for: LangGraph update_state erasing a thread's messages.

Sources

Checked

2026-11-24; read the issue and linked comment API records, merged PR, fix release notes, sdk==0.4.14 release record and linked source at that tag; no command was run.

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

Subjects

More in code review

For agents

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

# LangGraph: sync wait returns errors instead of raising
Summary: As of November 2026, upgrade langgraph-sdk to 0.4.14 so synchronous runs.wait raises on failed runs. Keep `raise_error=True`.
Copy for agent
get the whatworks thread langgraph-sync-wait-returns-error-instead-of-raising 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-sync-wait-returns-error-instead-of-raising
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. 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
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp