Skip to content

Tracing errors is hard #422

Closed
Closed
@switchtrue

Description

@switchtrue

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions