Page MenuHomePhabricator

CCC: redis.exceptions.DataError
Closed, ResolvedPublic

Description

 File "rcwatcher.py", line 51, in main
    run_watcher()
  File "rcwatcher.py", line 45, in run_watcher
    redis.rpush(REDIS_KEY, ImageObj(change))
  File "/usr/local/lib/python3.8/site-packages/redis/client.py", line 1734, in rpush
    return self.execute_command('RPUSH', name, *values)
  File "/usr/local/lib/python3.8/site-packages/redis/client.py", line 838, in execute_command
    conn.send_command(*args)
  File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 686, in send_command
    self.send_packed_command(self.pack_command(*args),
  File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 737, in pack_command
    for arg in imap(self.encoder.encode, args):
  File "/usr/local/lib/python3.8/site-packages/redis/connection.py", line 117, in encode
    raise DataError("Invalid input of type: '%s'. Convert to a "
redis.exceptions.DataError: Invalid input of type: 'ImageObj'. Convert to a byte, string or number first.
CRITICAL: Exiting due to uncaught exception <class 'redis.exceptions.DataError'>

Revisions and Commits

Event Timeline

TheSandDoctor created this task.
TheSandDoctor created this object with visibility "Public (No Login Required)".
TheSandDoctor added a commit: Restricted Diffusion Commit.Feb 6 2020, 10:07 PM
Traceback (most recent call last):
  File "rcworker.py", line 188, in <module>
    main()
  File "rcworker.py", line 183, in main
    run_worker()
  File "rcworker.py", line 61, in run_worker
    change = pickle.loads(pickle) # Need to unpickle and build object once more - T99
AttributeError: 'bytes' object has no attribute 'loads'
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
TheSandDoctor added a commit: Restricted Diffusion Commit.Feb 6 2020, 10:10 PM