uri = "redis+cluster://:testpassword@host:123,host:456"
RedisClusterStorage(uri=uri)
will throw:
limits/storage/redis_cluster.py in __init__(self, uri, **options)
53 cluster_hosts = []
54 for loc in parsed.netloc.split(","):
---> 55 host, port = loc.split(":")
56 cluster_hosts.append((host, int(port)))
57
ValueError: too many values to unpack (expected 2)
I think this is because the netloc will include the password piece and fail to parse then when splitting.
Repro:
will throw:
I think this is because the netloc will include the password piece and fail to parse then when splitting.
limits version 3.1.5, python 3.9.