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
- SyncRunsClient.wait ignores raise_error for failed runs, stacy9966, opened 2026-07-19; closed as completed on 2026-10-26: "SyncRunsClient.wait ignores raise_error for failed runs"
- fix(sdk-py): retry runs.wait with a bodyless GET and raise run errors in sync wait, eliornl; closed and merged 2026-10-26.
- sdk==0.4.10, published 2026-10-26.
- sdk==0.4.14, published 2026-11-06.
- Source at sdk==0.4.14, current-release implementation.
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