Skip to content

Received incompatible instance \"<coroutine object get_batch_resolver.<locals>.resolve at 0x1080d6840> #327

Closed
@raguiar2

Description

@raguiar2

When following the tutorial at https://docs.graphene-python.org/projects/sqlalchemy/en/latest/tutorial/ and using the following packages

asgiref==3.4.1
Flask==2.0.2
graphene==3.0
graphene-sqlalchemy==3.0.0b1
graphql-core==3.1.6
graphql-server[flask]==3.0.0b4
graphql-relay==3.1.0
uvicorn==0.16.0
gunicorn==20.1.0

to run an ASGI uvicorn server with flask (though it doesn't work if i just type flask run either), I execute the graphql command

{
  allEmployees {
    edges {
      node {
        id
        name
        department {
          name
        }
      }
    }
  }
}

And get a bunch of errors that say:
Received incompatible instance \"<coroutine object get_batch_resolver.<locals>.resolve at 0x1080d6840>

I looked deeper into it and it looks like the batch_load_fn in the batching.py file might not be awaited. Is this an error on the flask end? My code itself is exactly the same as the tutorials.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions