redis/redis-py · error · RedisClusterException
Cannot execute FT.CURSOR commands without FT.AGGREGATE
Error message
Cannot execute FT.CURSOR commands without FT.AGGREGATE
What it means
Error "Cannot execute FT.CURSOR commands without FT.AGGREGATE" thrown in redis/redis-py.
Source
Thrown at redis/cluster.py:1123
keys = self._get_command_keys(*args)
commands = []
for key in keys:
commands.append(
{
"args": (args[0], key),
"kwargs": kwargs,
}
)
return commands
def get_special_nodes(self) -> Optional[list["ClusterNode"]]:
"""
Returns a list of nodes for commands with a special policy.
"""
if not self._aggregate_nodes:
raise RedisClusterException(
"Cannot execute FT.CURSOR commands without FT.AGGREGATE"
)
return self._aggregate_nodes
def get_random_primary_node(self) -> "ClusterNode":
"""
Returns a random primary node
"""
return random.choice(self.get_primaries())
def _evaluate_all_succeeded(self, res):
"""
Evaluate the result of a command with ResponsePolicy.ALL_SUCCEEDED
"""
first_successful_response = None
if isinstance(res, dict):View on GitHub (pinned to da03cdc7e8)
When it happens
Trigger: Thrown at redis/cluster.py:1123 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of redis/redis-py@da03cdc7e8 (2026-08-04).
Data as JSON: /data/errors/5e3afe4b77bb4806.json.
Report an issue: GitHub.