{"id":"7a4d222a1bf1d549","repo":"redis/redis-py","slug":"maintenance-notifications-are-only-supported-with-7a4d22","errorCode":null,"errorMessage":"Maintenance notifications are only supported with RESP version 3","messagePattern":"Maintenance notifications are only supported with RESP version 3","errorType":"exception","errorClass":"RedisError","httpStatus":null,"severity":"error","filePath":"redis/cluster.py","lineNumber":894,"sourceCode":"                ),\n                retries=cluster_error_retry_attempts,\n            )\n\n        self.encoder = Encoder(\n            kwargs.get(\"encoding\", \"utf-8\"),\n            kwargs.get(\"encoding_errors\", \"strict\"),\n            kwargs.get(\"decode_responses\", False),\n        )\n        protocol = kwargs.get(\"protocol\", None)\n        if (cache_config or cache) and not check_protocol_version(protocol, 3):\n            raise RedisError(\"Client caching is only supported with RESP version 3\")\n\n        if (\n            maint_notifications_config\n            and maint_notifications_config.enabled\n            and not check_protocol_version(protocol, 3)\n        ):\n            raise RedisError(\n                \"Maintenance notifications are only supported with RESP version 3\"\n            )\n        if check_protocol_version(protocol, 3) and maint_notifications_config is None:\n            maint_notifications_config = MaintNotificationsConfig()\n\n        # Build the client-level HIMPORT registry once (always empty at construction)\n        # and share the same object with every node pool, so the fieldset registry is\n        # shared cluster-wide and runtime himport_prepare mutates one object. It is\n        # handed to the NodesManager and injected onto each node's pool in\n        # create_redis_node; it is deliberately NOT forwarded through connection_kwargs,\n        # so nodes reuse the one shared object rather than each rebuilding their own.\n        self._himport_registry = HImportRegistry()\n\n        self.command_flags = self.__class__.COMMAND_FLAGS.copy()\n        self.node_flags = self.__class__.NODE_FLAGS.copy()\n        self.read_from_replicas = read_from_replicas\n        self.load_balancing_strategy = load_balancing_strategy\n        self.reinitialize_counter = 0","sourceCodeStart":876,"sourceCodeEnd":912,"githubUrl":"https://github.com/redis/redis-py/blob/da03cdc7e8731092b13e395605c3c1fb2de25de1/redis/cluster.py#L876-L912","documentation":"Error \"Maintenance notifications are only supported with RESP version 3\" thrown in redis/redis-py.","triggerScenarios":"Thrown at redis/cluster.py:894 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}