graphene icon indicating copy to clipboard operation
graphene copied to clipboard

Exception is swallowed in mutation

Open glusa8 opened this issue 4 years ago • 1 comments

Note: for support questions, please use stackoverflow. This repository's issues are reserved for feature requests and bug reports.

  • What is the current behavior? When I throw an exception in a mutation, the exception does not show up (double checked on GraphiQL). If there is a way to have the exception show up, I couldn't find it in the documentation. Is swallowing the exception an expected behavior?

  • If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via a github repo, https://repl.it or similar.

See the screenshots below. The example I created is easy to reproduce.

  • What is the expected behavior?

The exception should show up as an error.

  • What is the motivation / use case for changing the behavior?

  • Please tell us about your environment:

    • Version: Graphene 3.1.1
    • Framework: Django (graphene_django 3.0.0)
    • Platform: Mac OS
    • Python: 3.10.5
  • Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow)

Screen Shot 2022-10-08 at 10 24 35 PM

Screen Shot 2022-10-08 at 10 24 11 PM

glusa8 avatar Oct 09 '22 05:10 glusa8

This is an issue with graphene-django which is not directly related to graphene. You can find some solutions in this thread: https://github.com/graphql-python/graphene-django/issues/124 If that doesn't solve the issue, feel free to open another one over there 🙂

erikwrede avatar Oct 23 '22 18:10 erikwrede