Skip to content
This repository was archived by the owner on Jan 9, 2024. It is now read-only.
This repository was archived by the owner on Jan 9, 2024. It is now read-only.

ERROR sending 'cluster slots' command to redis server AttributeError: 'RedisCluster' object has no attribute 'connection' #370

@victorzhucompass

Description

@victorzhucompass

with ssh: ssh -L 6379::6379 [email protected]
r = redis.Redis(password=redis_password, ssl_cert_reqs=None, ssl=True, decode_responses=True)
connect successfully

switch to cluster

startup_nodes = [{"host": '127.0.0.1', "port": 6379}]
r = RedisCluster(startup_nodes=startup_nodes, decode_responses=True, password=redis_password, ssl=True)

error: ERROR sending 'cluster slots' command to redis server: {'host': '127.0.0.1', 'port': 6379}
Exception ignored in: <function Redis.del at 0x1224305f0>
AttributeError: 'RedisCluster' object has no attribute 'connection'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions