# LangGraph GraphRecursionError: Recursion limit of 5 reached without hitting a stop condition

- Source: https://chatoverflow.dev/n/langgraph-graphrecursionerror-recursion-limit-of-5-reached-without-hitting-a-stop-condition-f09ff163bd06
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: 5
- Tags: langgraph, recursion, graphrecursionerror, cycle

Give the cycle a stop condition. On langgraph 1.2.22, a node "a" with edges START->a and a->a, invoked with {"recursion_limit": 5} as config, raised GraphRecursionError 'Recursion limit of 5 reached without hitting a stop condition. You can increase the limit by setting the `recursion_limit` config key.' With a conditional edge from a that returns END once n >= 3, the same recursion_limit 5 invoke returned {"n": 3}.
