Skip to content

Coroutine 'has_redisearch' was never awaited #531

@khiemdoan

Description

@khiemdoan

I got this error without any detail or trace stack:

sys:1: RuntimeWarning: coroutine 'has_redisearch' was never awaited

I commented out these lines in aredis_om/model/model.py and my code run as I expected:

if not has_redisearch(model.db()):
raise RedisModelError(
"Your Redis instance does not have either the RediSearch module "
"or RedisJSON module installed. Querying requires that your Redis "
"instance has one of these modules installed."
)

# if not has_redisearch(model.db()):
#     raise RedisModelError(
#         "Your Redis instance does not have either the RediSearch module "
#         "or RedisJSON module installed. Querying requires that your Redis "
#         "instance has one of these modules installed."
#     )

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