大神们帮帮小弟,我在用redis 和 flask 维护代理池的时候出现报错
Process Process-1:
Traceback (most recent call last):
Traceback (most recent call last):
File "C:\Users\26243\Anaconda3\Lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "C:\Users\26243\Anaconda3\Lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "D:\ProxyPool-master\proxypool\schedule.py", line 129, in check_pool
if conn.queue_len < lower_threshold:
File "D:\ProxyPool-master\proxypool\db.py", line 41, in queue_len
return self._db.llen("proxies")
File "D:\26243\lib\site-packages\redis\client.py", line 1671, in llen
return self.execute_command('LLEN', name)
File "D:\26243\lib\site-packages\redis\client.py", line 839, in execute_command
return self.parse_response(conn, command_name, **options)
File "D:\26243\lib\site-packages\redis\client.py", line 853, in parse_response
response = connection.read_response()
File "C:\Users\26243\Anaconda3\Lib\multiprocessing\process.py", line 258, in _bootstrap
self.run()
File "D:\26243\lib\site-packages\redis\connection.py", line 718, in read_response
raise response
File "C:\Users\26243\Anaconda3\Lib\multiprocessing\process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "D:\ProxyPool-master\proxypool\schedule.py", line 109, in valid_proxy
count = int(0.5 * conn.queue_len)
File "D:\ProxyPool-master\proxypool\db.py", line 41, in queue_len
return self._db.llen("proxies")
File "D:\26243\lib\site-packages\redis\client.py", line 1671, in llen
return self.execute_command('LLEN', name)
File "D:\26243\lib\site-packages\redis\client.py", line 839, in execute_command
return self.parse_response(conn, command_name, **options)
redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value
File "D:\26243\lib\site-packages\redis\client.py", line 853, in parse_response
response = connection.read_response()
File "D:\26243\lib\site-packages\redis\connection.py", line 718, in read_response
raise response
redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value
我是蒙蔽了,可以给我一点点的帮助吗