{"id":"53f48c5354c9ab74","repo":"redis/redis-py","slug":"slot-slot-not-covered-by-the-cluster-require-53f48c","errorCode":null,"errorMessage":"Slot \"{slot}\" not covered by the cluster. \"require_full_coverage={self._require_full_coverage}\"","messagePattern":"Slot \"(.+?)\" not covered by the cluster\\. \"require_full_coverage=(.+?)\"","errorType":"exception","errorClass":"SlotNotCoveredError","httpStatus":null,"severity":"error","filePath":"redis/cluster.py","lineNumber":2404,"sourceCode":"        version=\"5.3.0\",\n    )\n    def get_node_from_slot(\n        self,\n        slot: int,\n        read_from_replicas: bool = False,\n        load_balancing_strategy: Optional[LoadBalancingStrategy] = None,\n        server_type: Optional[Literal[\"primary\", \"replica\"]] = None,\n    ) -> ClusterNode:\n        \"\"\"\n        Gets a node that servers this hash slot\n        \"\"\"\n\n        if read_from_replicas is True and load_balancing_strategy is None:\n            load_balancing_strategy = LoadBalancingStrategy.ROUND_ROBIN\n\n        with self._lock:\n            if self.slots_cache.get(slot) is None or len(self.slots_cache[slot]) == 0:\n                raise SlotNotCoveredError(\n                    f'Slot \"{slot}\" not covered by the cluster. '\n                    + f'\"require_full_coverage={self._require_full_coverage}\"'\n                )\n\n            if len(self.slots_cache[slot]) > 1 and load_balancing_strategy:\n                # get the server index using the strategy defined in load_balancing_strategy\n                primary_name = self.slots_cache[slot][0].name\n                node_idx = self.read_load_balancer.get_server_index(\n                    primary_name, len(self.slots_cache[slot]), load_balancing_strategy\n                )\n            elif (\n                server_type is None\n                or server_type == PRIMARY\n                or len(self.slots_cache[slot]) == 1\n            ):\n                # return a primary\n                node_idx = 0\n            else:","sourceCodeStart":2386,"sourceCodeEnd":2422,"githubUrl":"https://github.com/redis/redis-py/blob/da03cdc7e8731092b13e395605c3c1fb2de25de1/redis/cluster.py#L2386-L2422","documentation":"Error \"Slot \"{slot}\" not covered by the cluster. \"require_full_coverage={self._require_full_coverage}\"\" thrown in redis/redis-py.","triggerScenarios":"Thrown at redis/cluster.py:2404 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"analyzedSha":"da03cdc7e8731092b13e395605c3c1fb2de25de1","analyzedAt":"2026-08-04T20:26:47.563Z","schemaVersion":2}