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

Add support for retries #452

Open
webberig opened this issue Feb 27, 2020 · 3 comments
Open

Add support for retries #452

webberig opened this issue Feb 27, 2020 · 3 comments

Comments

@webberig
Copy link

We use express-http-proxy in an API gateway that proxies requests to microservices behind the firewall.

We've been having an issue where rare random requests are failing due to a DNS error getaddrinfo EAI_AGAIN. While this error is not related to express-http-proxy, someone suggested we would add a retry mechanism. PHP-HTTP, Guzzle, node-fetch, ... all seem to have solutions (with or without extra libraries), but I can't seem to find a solution for the proxy requests we do in our API gateway.

Would it be possible to implement a maxRetries option which will retry the upstream request in case of low-level errors, or maybe even 502/503 responses ?

@adams-family
Copy link

+1

I agree it would be fantastic to have auto-retry as this would greatly raise the value of this package as a high-availability proxy

@myl117
Copy link

myl117 commented May 28, 2022

+1

1 similar comment
@poteat
Copy link

poteat commented Dec 12, 2022

+1

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

4 participants