Skip to content

Executing a GraphQL query containing types crashes #256

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

Closed
NyanKiyoshi opened this issue Oct 10, 2019 · 1 comment · Fixed by #257
Closed

Executing a GraphQL query containing types crashes #256

NyanKiyoshi opened this issue Oct 10, 2019 · 1 comment · Fixed by #257

Comments

@NyanKiyoshi
Copy link
Contributor

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]
@Cito
Copy link
Member

Cito commented Oct 11, 2019

Thank you for the bug report and pull request.

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

Successfully merging a pull request may close this issue.

2 participants