Skip to content
masterclass Buddy

LangGraph · Error

GraphRecursionError

GraphRecursionError is raised when a LangGraph graph exceeds its maximum step count. Set recursion_limit in the run configuration to allow more steps, and add a clear termination condition to prevent endless loops.

Last updated

Since
v1.2

Syntax

GraphRecursionError()

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • RecursionError
  • recursion_limit
  • graph.invoke
  • config.metadata.langgraph_step
  • GRAPH_RECURSION_LIMIT

Source: GraphRecursionError | langgraph | LangChain Reference. Checked 2026-11-03.