Skip to content

Retry Horizon RPC calls on transient 503 responses#237

Open
agnesadoga-creator wants to merge 1 commit into
FX-GENE:mainfrom
agnesadoga-creator:fix/1-horizon-rpc-retry-503
Open

Retry Horizon RPC calls on transient 503 responses#237
agnesadoga-creator wants to merge 1 commit into
FX-GENE:mainfrom
agnesadoga-creator:fix/1-horizon-rpc-retry-503

Conversation

@agnesadoga-creator

Copy link
Copy Markdown

Closes #1

Problem

Horizon RPC calls that receive a transient 503 were not retried, causing avoidable failures.

Fix

HealthService.checkHttp (used for the stellar_horizon check against HORIZON_URL) now retries up to 2 additional times, with a short increasing backoff (200ms, 400ms), when Horizon responds with a transient status code (502, 503, or 504). Non-transient responses (2xx or other error codes like 500) still return immediately, matching previous behavior.

Testing

Reviewed by inspection (no local build/test run per task scope — dependencies not installed).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Horizon RPC timeout not retried on transient 503

1 participant