Skip to content

Conversation

@rimiti
Copy link
Collaborator

@rimiti rimiti commented Dec 15, 2025

Purpose

This pull request introduces automatic retry logic for HTTP requests made using axios by integrating the axios-retry library into the base provider class. This enhances the resilience of network requests and allows for customizable retry behavior via configuration options.

Dependency addition:

  • Added axios-retry as a new dependency in package.json to enable retry functionality for HTTP requests.

Base provider improvements:

  • Imported axios-retry in src/classes/providers/base/index.ts and applied it to the axios instance within the Base class, using sensible default options (3 retries, exponential backoff, etc.) with the ability to override via configuration. [1] [2]

Configuration enhancements:

  • Updated the IBaseConfig interface in src/classes/providers/base/types.ts to include an optional retryConfig property, allowing consumers to customize retry behavior. [1] [2]

@rimiti rimiti self-assigned this Dec 15, 2025
@rimiti rimiti merged commit 9904708 into master Dec 15, 2025
1 check passed
@rimiti rimiti deleted the feat/axios-retry branch December 15, 2025 13:29
@nodi-bot
Copy link

🎉 This PR is included in version 5.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants