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

Ability to retry a request after an error #355

Open
1 task done
cernymatej opened this issue Jan 27, 2024 · 2 comments
Open
1 task done

Ability to retry a request after an error #355

cernymatej opened this issue Jan 27, 2024 · 2 comments

Comments

@cernymatej
Copy link

Describe the feature

I believe it would be beneficial to have the ability to easily retry a failed request based on custom logic defined in an interceptor. For instance, in the case of a 401 response, you could refresh your session in an interceptor and then, if the refresh is successful, you could retry the original request easily by calling retry().

What do you think?

Additional information

  • Would you be willing to help implement this feature?
@cernymatej cernymatej mentioned this issue Jun 3, 2024
8 tasks
@huxc
Copy link

huxc commented Jul 12, 2024

Is this feature currently available?

@zawasp
Copy link

zawasp commented Sep 1, 2024

This would also help with Cloudflare Pre-clearance:
https://blog.cloudflare.com/integrating-turnstile-with-the-cloudflare-waf-to-challenge-fetch-requests/

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

3 participants