Traceback (most recent call last):
File "C:\Users\mypc\Desktop\proxy_pool\proxy_pool-master\db\redisClient.py", line 144, in test
self.getCount()
File "C:\Users\mypc\Desktop\proxy_pool\proxy_pool-master\db\redisClient.py", line 130, in getCount
proxies = self.getAll(https=False)
File "C:\Users\mypc\Desktop\proxy_pool\proxy_pool-master\db\redisClient.py", line 112, in getAll
items = self.__conn.hvals(self.name)
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\redis\client.py", line 3084, in hvals
return self.execute_command('HVALS', name)
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\redis\client.py", line 898, in execute_command
conn = self.connection or pool.get_connection(command_name, **options)
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\redis\connection.py", line 1379, in get_connection
connection.connect()
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\redis\connection.py", line 567, in connect
self.on_connect()
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\redis\connection.py", line 643, in on_connect
auth_response = self.read_response()
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\redis\connection.py", line 739, in read_response
response = self._parser.read_response()
File "C:\Users\mypc\AppData\Local\Programs\Python\Python37\lib\site-packages\redis\connection.py", line 340, in read_response
raise error
redis.exceptions.AuthenticationError: Client sent AUTH, but no password is set
2021-06-09 16:06:08,143 launcher.py[line:39] INFO exit!
1.重启redis
关闭:redis-cli shutdown 或者 kill redis进程的pid
2.重启
redis-server.exe redis.windows.conf
3.auth myPassword
4.PING
已解决