langchain-ai/langgraph · error
NodeInterrupt is deprecated. Please use…
Error message
NodeInterrupt is deprecated. Please use `langgraph.types.interrupt` instead.
What it means
Deprecation warning emitted when NodeInterrupt is instantiated: raising NodeInterrupt inside a node is superseded by the functional interrupt() API from langgraph.types. The class still works (it subclasses GraphInterrupt) but is scheduled for removal.
Solutions
- Replace 'raise NodeInterrupt(value)' with 'return interrupt(value)' from langgraph.types inside the node
- Migrate subgraph interrupt propagation patterns to the interrupt/resume (Command) API
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at libs/langgraph/langgraph/errors.py:118 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of langchain-ai/langgraph@38031739e5 (2026-08-26).
Data as JSON: /api/errors/6689250a5f6f549a.
Report an issue: GitHub.
Appendix: source
Thrown at libs/langgraph/langgraph/errors.py:118
class GraphInterrupt(GraphBubbleUp):
"""Raised when a subgraph is interrupted, suppressed by the root graph.
Never raised directly, or surfaced to the user."""
def __init__(self, interrupts: Sequence[Interrupt] = ()) -> None:
super().__init__(interrupts)
@deprecated(
"NodeInterrupt is deprecated. Please use [`interrupt`][langgraph.types.interrupt] instead.",
category=None,
)
class NodeInterrupt(GraphInterrupt):
"""Raised by a node to interrupt execution."""
def __init__(self, value: Any, id: str | None = None) -> None:
warn(
"NodeInterrupt is deprecated. Please use `langgraph.types.interrupt` instead.",
LangGraphDeprecatedSinceV10,
stacklevel=2,
)
if id is None:
super().__init__([Interrupt(value=value)])
else:
super().__init__([Interrupt(value=value, id=id)])
class ParentCommand(GraphBubbleUp):
args: tuple[Command]
def __init__(self, command: Command) -> None:
super().__init__(command)
class EmptyInputError(Exception):View on GitHub (pinned to 38031739e5)