-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
🚀 Improve error handling for net error(s) #2421
Conversation
fixes: reverse proxy support #2419
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it really always an 502 Bad Gateway
error?
I'm wondering the same thing 🤔 |
Co-authored-by: leonklingele <[email protected]>
just give me good suggestions and i will change it before it was always a 500 that was not specific and exposed the error message with the network information. so i would either take the 500 again or 502 or 503 |
Is it possible to get the return code from the NetError object? |
not really, because it is not a http error |
@ReneWerner87 This is what GPT-4 says:
I guess bad gateway makes sense in terms of a reverse proxy. |
|
Fixes: reverse proxy support #2419
With this change we want to improve the default error handler, so that it does not give out the internal network information of the dial in case of net.error.
So that fiber becomes more secure.