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

Attach a unique id with request #271

Open
jinujd opened this issue May 14, 2024 · 0 comments
Open

Attach a unique id with request #271

jinujd opened this issue May 14, 2024 · 0 comments

Comments

@jinujd
Copy link

jinujd commented May 14, 2024

In onRetry we receive the error and request config.
If same axios client is used for multiple requests, it is difficult to identify for which request retry is going on, especially if URLs, params and headers for these requests are same.
So it is suggested to attach an autogenerated unique id named groupId which identifies the request and is included in either error object or request config, which will be same for all retries for a specific request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant