Skip to content

[QA-Bug] Donation indexer still 502 — retry backoff too short for Base Sepolia #170

@realproject7

Description

@realproject7

Problem

PR #162 added getReceiptWithRetry() with 3 attempts (1s/2s/3s backoff = 6s total), but Base Sepolia public RPC still returns "receipt not found" after 6 seconds. The donation indexer continues to fail with 502.

Root Cause

Base Sepolia's free public RPC (sepolia.base.org) has high propagation latency. The receipt may not be available for 10-15 seconds after waitForTransactionReceipt resolves on the client side (different RPC node).

Fix Options

Option A (recommended): Increase retry to 5 attempts with longer backoff (2s/4s/6s/8s/10s = 30s total)

Option B: Add client-side delay before calling the indexer API — wait 5s after tx receipt before triggering /api/index/donation

Option C: Both A + B for maximum reliability

Files

  • lib/rpc.tsgetReceiptWithRetry() — increase maxAttempts and backoff multiplier
  • src/components/DonateWidget.tsx — optionally add delay before indexer call

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions