Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Pass config to onError interceptors #60

Open
MattCCC opened this issue Sep 21, 2024 · 0 comments
Open

[Feature] Pass config to onError interceptors #60

MattCCC opened this issue Sep 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@MattCCC
Copy link
Owner

MattCCC commented Sep 21, 2024

The config object contains details about the request that caused the error. This includes URL, headers, method, and other configurations. Access to these details allows for more informed error handling, such as logging the exact request parameters that led to the failure.

Sometimes, the handling of errors may depend on specific request configurations. For example, you might want to retry certain requests differently based on their config, or provide different fallback mechanisms depending on the request type.

@MattCCC MattCCC changed the title Pass config to onError interceptors [Feature] Pass config to onError interceptors Sep 22, 2024
@MattCCC MattCCC added the enhancement New feature or request label Sep 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant