Skip to content

Executing a GraphQL query containing types crashes #256

Closed
@NyanKiyoshi

Description

@NyanKiyoshi

If we run for example the following query:

type MyType {
}

The graphql-core will crash with the following stack trace:

  File "graphql/error/format_error.py", line 17, in format_error
    if error.locations is not None:
  File "graphql/error/base.py", line 80, in locations
    source = self.source
  File "graphql/error/base.py", line 54, in source
    node = self.nodes[0]

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