Germey / ProxyPool

Proxy Pool System
Apache License 2.0
676 stars 402 forks source link

redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wr ong kind of value #34

Open lh19880904 opened 5 years ago

lh19880904 commented 5 years ago

代理池开始运行 Process Process-2: Traceback (most recent call last): File "C:\Anaconda3\lib\multiprocessing\process.py", line 297, in _bootstrap self.run() File "C:\Anaconda3\lib\multiprocessing\process.py", line 99, in run self._target(*self._args, **self._kwargs) File "C:\proxypool\scheduler.py", line 28, in schedule_getter getter.run() File "C:\proxypool\getter.py", line 23, in run if not self.is_over_threshold(): File "C:\proxypool\getter.py", line 16, in is_over_threshold if self.redis.count() >= POOL_UPPER_THRESHOLD: File "C:\proxypool\db.py", line 83, in count return self.db.zcard(REDIS_KEY) File "C:\Anaconda3\lib\site-packages\redis\client.py", line 1701, in zcard return self.execute_command('ZCARD', name)