angelxmoreno / angelxmoreno/rapidapi-node-sdk

Implement Global Error Handler for Axios Instance in RapidApi Class

Open
#2 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

As discussed in [PR #1](https://github.com/angelxmoreno/rapidapi-node-sdk/pull/1) and [this comment](https://github.com/angelxmoreno/rapidapi-node-sdk/pull/1#discussion_r1476880959), there's a need to implement a global error handler for the Axios instance used in the class. This enhancement aims to ensure graceful handling of HTTP request failures across the application.

The implementation should follow the suggested approach of using Axios interceptors for error handling, as outlined in the discussion. This ticket serves to track the enhancement for future development.

@angelxmoreno, please review the issue details and adjust as necessary.

Contributor guide

Open the contributing guide

Research direction

Start with the RapidApi class and the Axios instance it uses, then read PR #1 and the linked discussion for the proposed interceptor approach. Done means HTTP request failures are handled globally and gracefully across the SDK, with behavior confirmed by the project's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.