Skip to content

AttributeError on Graphqlview #83

@vallode

Description

@vallode

Cannot find much information about this and struggling to debug myself:

AttributeError: 'dict' object has no attribute 'decode'

Error appears when accessing the graphql IDE with a minimal setup:

class Query(graphene.ObjectType):
    node = relay.Node.Field()

schema = graphene.Schema(query=Query)
app.add_url_rule(
    "/graphql",
    view_func=GraphQLView.as_view("graphql", schema=schema, graphiql=True),
)

All queries are faced with this error, without the graphql IDE the endpoint is fine.

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