Skip to content

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

@lh19880904

Description

@lh19880904

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions