Skip to content
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

Tracing errors is hard #422

Closed
switchtrue opened this issue Feb 23, 2017 · 4 comments
Closed

Tracing errors is hard #422

switchtrue opened this issue Feb 23, 2017 · 4 comments

Comments

@switchtrue
Copy link

Tracing errors can be incredibly difficult as graphene collects the error messages and returns them. This is great for production but not during development. For example, I get the following back from a query and have no idea what is causing the error:

{
  "errors": [
    {
      "message": "'unicode' object has no attribute 'get'"
    }
  ],
  "data": {
    "users": null
  }
}

Would it be possible to include some sort of debug flag that can raise exceptions with stacktraces on error?

@switchtrue
Copy link
Author

I believe I've raised this in the wrong place it should be in Flask-graphql. Apollogies.

@TimOrme
Copy link

TimOrme commented Oct 5, 2017

@Mleonard87 Did you ever find a way to do this in flask-graphql? Having the same issue

@ekampf
Copy link
Contributor

ekampf commented Oct 6, 2017

@Mleonard87 graphene generate the response json not Flask. It collect said errors as part of its execution... should probably improve it and add trace etc

@reverie
Copy link

reverie commented Apr 11, 2019

The discussion at https://github.com/graphql-python/graphql-core/issues/237 might be helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants