graphql-python / graphene-django

Build powerful, efficient, and flexible GraphQL APIs with seamless Django integration.

Home Page:http://docs.graphene-python.org/projects/django/en/latest/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GraphiQL v2.4.1 won't run IntrospectionQuery properly

sparktx-adam-gleason opened this issue · comments

  • What is the current behavior?

GraphiQL update to v2.4.1 won't load properly. Loading up the page gives this error

{
  "errors": [
    {
      "message": "Must provide query string."
    }
  ]
}

Investigating the Network tab shows the IntrospectionQuery is giving a 400 error. I've tested the query against my app using Postman and it works correctly.

Queries against the /graphq/ endpoint using Postman also work.

Just the update to the new interface for GraphiQL seems to break.

Example repo here

  1. Clone repo
  2. pip install requirements
  3. navigate to localhost:8000/graphql/ to see error.
  • What is the expected behavior?

GraphiQL view works properly.

  • Please tell us about your environment:

    • Version: graphene-django==3.0.1
    • Platform: MacOS

NOTE: GraphiQL works fine on graphene-django==3.0.0

I just ran into this as well. Investigating.

I also had this problem.