Skip to content

Implement Global Axios Timeout Using Interceptors #111

@kenny-io

Description

@kenny-io

Different parts of the codebase use inconsistent Axios request methods (axiosWithRetry, requestWithRetry, direct axios.get, etc.) without uniform timeout enforcement. While requestWithRetry has default timeouts, other methods lack this protection, potentially leading to hanging requests.

Proposed Solution

Implement an Axios interceptor to enforce configurable global timeouts across all requests to ensure consistent timeout handling without manual intervention by developers.

Tasks

  • Create Axios interceptor for global timeout enforcement
  • Refactor existing requests to use consistent pattern
  • Document implementation for future developers

Impact

This fix will prevent indefinitely waiting for Axios requests across the entire codebase.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions