Skip to content

fix: wait for friendbot readiness before funding accounts#31

Merged
AquiGorka merged 2 commits intomainfrom
fix/up-friendbot-wait
Mar 24, 2026
Merged

fix: wait for friendbot readiness before funding accounts#31
AquiGorka merged 2 commits intomainfrom
fix/up-friendbot-wait

Conversation

@AquiGorka
Copy link
Copy Markdown
Contributor

Summary

  • Adds Friendbot readiness check between Stellar RPC health check and account funding
  • Prevents intermittent HTTP 502 errors on fresh starts when Friendbot isn't ready yet
  • Polls up to 30s before failing

Test plan

  • Ran ./down.sh && ./up.sh — accounts fund successfully on first try
  • Ran full E2E suite (cd e2e && deno task e2e) — passed in 44s

Allows running multiple stacks in parallel by overriding ports and
names. All values default to the current hardcoded values for
backwards compatibility.
up.sh checks Stellar RPC health before proceeding to account creation,
but Friendbot takes a few extra seconds to initialize after RPC is
healthy. This causes intermittent HTTP 502 errors when funding accounts.

Adds an explicit Friendbot readiness loop (up to 30s) between the
Stellar RPC check and the accounts stage.
@AquiGorka AquiGorka merged commit 4a5e1a9 into main Mar 24, 2026
1 check passed
@AquiGorka AquiGorka deleted the fix/up-friendbot-wait branch March 24, 2026 14:00
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