Skip to content

[BUG] Horizon SSE stream has no reconnection logic - automation stops silently after network drop #11

Description

@thisisouvik

Description

In backend/src/engine/horizonStream.ts, the Horizon SSE stream monitors wallets for incoming payments. There is no exponential backoff or max-retry logic for stream disconnections. If Stellar Horizon drops the connection (common after 30-60s on testnet), the stream silently stops and users' rules stop firing until the backend is restarted.

Steps to Reproduce

  1. Start backend with a monitored wallet.
  2. Wait for or force the Horizon SSE connection to drop.
  3. Send a payment to the wallet.
  4. Observe no payment event is processed.

Expected Behavior

The stream should automatically reconnect with exponential backoff (1s, 2s, 4s... max 60s).

Impact

Medium - Rules silently stop executing without any user-visible error or alert.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Stellar WaveMarked as Stellar Wavebug: mediumMedium priority bugengineRelated to the rule processing enginestellar-networkRelated to Stellar network interaction

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions