Skip to content
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

Issue with AsyncGraph Query call #3373

Open
YaphetKG opened this issue Sep 6, 2024 · 0 comments
Open

Issue with AsyncGraph Query call #3373

YaphetKG opened this issue Sep 6, 2024 · 0 comments

Comments

@YaphetKG
Copy link

YaphetKG commented Sep 6, 2024

Version:
https://github.com/redis/redis-py/blob/master/redis/commands/graph/commands.py#L262

Description:
The call above awaits a non async function and generates the following exception when using AsyncGraph class

   |   File "...kgx_chain.py", line 120, in concept_details_kgx
    |     result = await redis_graph.query(query, read_only=True)
    |              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |   File "...\site-packages\redis\commands\graph\commands.py", line 262, in query
    |     response = await self.execute_command(*command)
    |                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | TypeError: object list can't be used in 'await' expression
    +------------------------------------
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

No branches or pull requests

1 participant