Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lh19880904 opened this issue Jun 19, 2019 · 0 comments

Comments

@lh19880904
Copy link

lh19880904 commented Jun 19, 2019

代理池开始运行
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)

  • Serving Flask app "proxypool.api" (lazy loading)
    File "C:\Anaconda3\lib\site-packages\redis\client.py", line 668, in execute_command
    return self.parse_response(connection, command_name, **options)
    File "C:\Anaconda3\lib\site-packages\redis\client.py", line 680, in parse_response
    response = connection.read_response()
    File "C:\Anaconda3\lib\site-packages\redis\connection.py", line 629, in read_response
    raise response
    redis.exceptions.ResponseError: WRONGTYPE Operation against a key holding the wrong kind of value
    开始抓取代理
    获取器开始执行
  • Environment: production
    WARNING: Do not use the development server in a production environment.
    Use a production WSGI server instead.
  • Debug mode: off
  • Running on http://127.0.0.1:5555/ (Press CTRL+C to quit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant