Skip to content

Print exception traceback of GraphQLLocatedError #1121

Closed
@karlosss

Description

@karlosss

Hi!

I just spent the whole afternoon trying to find out how to display the exception traceback when the exception happens as a result of a request. I have a KeyError somewhere in my code and all I can see is

{
  "errors": [
    {
      "message": "'username'",
      "locations": [
        {
          "line": 17,
          "column": 3
        }
      ],
      "path": [
        "CustomUserUpdate"
      ]
    }
  ],
  "data": null
}

Would be way more informative if either the message field could somehow show the whole traceback, or, preferably, the traceback was printed into the console.

How do I achieve that, if possible at all?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions