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
Error response not sent to client #844
Comments
+1 |
1 similar comment
+1 |
I'm using http-proxy as a middleware and works fine returning any kind of error: // Proxy request to the provider
proxy.web(req, res, {
target: provider.target
}, function(err) {
// If there is any proxy error return the error.
next(err);
}); Your code at the Cheers. |
Hi acanimal, |
Hi
I'm using proxy.web to forward client requests.
When destination server is up, my code works as expected.
When destination server is down, ECONNREFUSED error is catch and printed to console.log. I would like to send that error back to the client, and tried using the sample provided here. Unfortunately, the error response does not arrive to the client (tried both chrome and firefox). Please find below code. Why does the response not sent to the client ?
The text was updated successfully, but these errors were encountered: