Skip to content

Using localhost:8000/graphiql yields an exception if the field query variables is empty or incorrect json #49

@Vassyli

Description

@Vassyli

See title. While trying to use graphiql, all queries failed to give any meaningful answer except html source code. Only after copying the html code, storing it in a file and replacing all \n with real line breaks revealed that the error message is

Variables are invalid JSON
400 Bad Request - BadRequestHttpException

This error is in principle 2 bugs:

  • If a query raises an exception, the error is not displayed directly but rather cryptic
  • An error should not be raised if query variables is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions