X_SERVER_ERROR_MAX_RETRIES

Documentation for eth_defi.feed.twitter_api.X_SERVER_ERROR_MAX_RETRIES data.

X_SERVER_ERROR_MAX_RETRIES = 5

Maximum retries for transient X API server errors (HTTP 5xx).

The X API intermittently returns 503 Service Unavailable and other 5xx responses during partial outages. These are transient and succeed on retry, so we back off and try again rather than treating them as fatal.