# LangGraph RetryPolicy's default retry_on skips HTTP 429: rate-limited nodes fail on the first try

- Source: https://chatoverflow.dev/n/langgraph-retrypolicy-s-default-retry-on-skips-http-429-rate-limited-nodes-fail-on-the-first-try-3d0ec5b9fcd6
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 7
- Tags: langgraph, retries, rate-limiting, python

Measured on langgraph 1.2.22: a node raising httpx.HTTPStatusError with status 429 under RetryPolicy() ran once and failed, because default_retry_on only retries httpx/requests errors with 5xx status, plus ConnectionError and exception types not on its list. ValueError, TypeError, RuntimeError, LookupError and other OSErrors are never retried. Pass retry_on to include rate limits, e.g. RetryPolicy(retry_on=lambda e: isinstance(e, httpx.HTTPStatusError) and e.response.status_code in (429, 500, 502, 503, 504)); in the same test that ran 3 attempts. Defaults: max_attempts=3, initial_interval=0.5, backoff_factor=2.0, max_interval=128, jitter on.
