Skip to content

feat: add configurable retry for transient rpc failures - #9

Open
gacevicljubisa wants to merge 1 commit into
mainfrom
retry-transient-rpc-errors
Open

feat: add configurable retry for transient rpc failures#9
gacevicljubisa wants to merge 1 commit into
mainfrom
retry-transient-rpc-errors

Conversation

@gacevicljubisa

Copy link
Copy Markdown
Member

Transient network errors (e.g. net/http: TLS handshake timeout) aborted the whole export. RPC calls now retry with a jittered exponential backoff.

  • --retry-max (default 5, 0 disables) and --retry-delay (default 1s, doubling up to 30s)
  • Retries FilterLogs, BlockNumber and ChainID; per-chunk, so no duplicate or missing logs
  • Retries transport errors, HTTP 429/5xx and JSON-RPC -32005; not other JSON-RPC errors or context cancellation
  • Unit tests for the backoff and the error classification

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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.

1 participant