Skip to content

Outbound HTTP timeouts for Horizon and webhooks #127

Description

@greatest0fallt1me

Description

Ensure all fetch/axios (or undici) calls to Horizon and external risk providers use connect and read timeouts.

Requirements and context

  • Configurable via environment.
  • Surface structured errors to callers.

Suggested execution

Fork and branch

Fork the repo and create a branch:

git checkout -b chore/outbound-http-timeouts

Implement changes

  • Audit horizonListener.ts and future HTTP clients.
  • Add shared fetchWithTimeout utility under src/utils/.

Test and commit

Run tests, cover edge cases, and attach test output plus security or ops notes (auth, PII, Stellar keys) in the PR.

Run tests

npm test

Example commit message

chore(http): outbound timeouts for Horizon and integrations

Guidelines

  • Minimum 95% coverage on touched modules where applicable (npm test / coverage report).

  • Clear documentation (OpenAPI openapi.yaml, README, and inline comments for non-obvious logic).

  • Timeframe: 96 hours.

  • Run npm run build or tsc if types change.

  • Keep OpenAPI in sync with route behavior.

Activity

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

Metadata

Metadata

Assignees

Labels

backendBackend servicereliabilityResilience, retries, idempotencystellarStellar ecosystem integration

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions