Skip to content

. Add api/client.ts request timeout #301

Description

@DeFiVC

What: Add request timeout to the ApiClient to prevent hanging requests.

Why: Requests can hang indefinitely if the server doesn't respond. Timeouts ensure the app doesn't get stuck.

Scope: Add timeout parameter to ApiClient methods (default 30s). Use AbortController with setTimeout. Handle timeout error gracefully.

Acceptance criteria:

  • Requests timeout after 30s
  • Timeout is configurable
  • Timeout error is handled
  • No hanging requests

Technical context: src/lib/api/client.ts — ApiClient class. src/lib/api/ — API modules.


Activity

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

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave program

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions