-
-
Notifications
You must be signed in to change notification settings - Fork 930
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
Always call custom error handler. #1803
Always call custom error handler. #1803
Conversation
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.
This behavior is explicitly mentioned on the documentation: Lines 31 to 32 in f6ea760
|
Well, this is counter-intuitive. Any option to reconsider it? |
I don't really see how it's counter-intuitive, because on a normal flow you usually have the handlers, and then you set the As a note, in the whole code source, we are effectively using the
We can wait for other people to share their thoughts here. Also, we should invite @alex-oleshkevich to encode. cc @tomchristie |
I mean that Starlette supports error handlers, and you can define custom 500/Exception handler via
In the current implementation, I agree that this will break any existing user 500-handler as they don't handle |
yes I agree with @alex-oleshkevich and find that counter intuitive too |
I've converted the issue into a discussion (#1867). I think there's something we need to do regarding this, but we need to achieve consensus. Until then, I'll close this PR. 🙏 |
As we head to 1.0 we may get back to this issue. My selling points are:
|
Reopening for discussion. The previous arguments against are still too strong imo. |
Providing a better DX at a minor cost ie a breaking change for users who already have a 500 handlers is a no brainer to me, it should be done |
Closing it as it seems, this issue is not going to be addressed. |
Fixes #1802