-
-
Notifications
You must be signed in to change notification settings - Fork 140
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
Exceptions in resolver are caught (no traceback) #23
Comments
Cito
added a commit
that referenced
this issue
Mar 1, 2019
Should solve issue #23 Also replicates graphql/graphql-js@f0ae3f4
@ceelian - thanks for the feedback. Changeset e0bb443 should improve this. Here is an example how you can get error tracebacks now:
Output:
Will release an upate with this improvement soon. |
Great, thank you for the improvement! |
Thank you, I was affected by this too. |
Version 1.0,2 with this fix has now been released on PyPI. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version:
GraphQL-core-next 1.0.1
Python 3.7.1
Current Behaviour:
Exceptions in resolvers are caught by default and the traceback of the original_error doesn't help debugging.
Traceback output of
log.exception('', exc_info=result.errors[0].original_error)
Expected Behaviour:
There is a flag raise_exception which switches if exceptions are caught or if they are raised out of the library resolver.
The traceback of the original_errors is meaningful: leads to the source line where the exception occurred.
The text was updated successfully, but these errors were encountered: