redis-om-python icon indicating copy to clipboard operation
redis-om-python copied to clipboard

UUID not supported in JSONModel

Open bearrito opened this issue 2 years ago • 0 comments

I have a very simple model

This works

class RedisJob(redis_om.HashModel):
    task_id: UUID

This does not work

class RedisJob(redis_om.JsonModel):
    task_id: UUID

The latter returns

cloud_ros_runtime/venv/lib/python3.8/site-packages/redis/client.py", line 560, in parse_command
    cmd_name = str_if_bytes(command[0])
TypeError: 'NoneType' object is not subscriptable

Here are my associated redis packages

hiredis==2.2.3
redis==4.6.0
redis-om==0.2.1
types-redis==4.6.0.3

bearrito avatar Jul 25 '23 17:07 bearrito