-
Notifications
You must be signed in to change notification settings - Fork 182
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 masking and internals leaking in error handling #209
Comments
This has been bugging me a lot, since I want to raise and catch my own Exception subclasses for some occasions in my app. This library currently makes this impossible, without changing the code in the library itself too. Using |
Yes, it did so far. There are actually two commits in my fork: second is to silence annoying noise in logs. I'm going to issue a pull request after some time of using it in our project. |
Pull request: #211 |
There are several places (
execute_graphql()
,complete_value()
,complete_value_catching_error()
,resolve_or_error()
,execute()
ExecutionContext.report_error()
, may be there is more) where the library indiscriminately catches all exceptions and reports them to client. It's correct behaviour for parsing/usage errors. But for programming and runtime errors there are problems:I believe the the right behaviour would be to catch and report to client specific exceptions only (
GraphQLError
and subclasses?) while propagating the rest.Related issues:
The text was updated successfully, but these errors were encountered: