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

UUID not supported in JSONModel #545

Closed
bearrito opened this issue Jul 25, 2023 · 2 comments
Closed

UUID not supported in JSONModel #545

bearrito opened this issue Jul 25, 2023 · 2 comments

Comments

@bearrito
Copy link

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
@slorello89
Copy link
Member

From what I'm looking at in these issues, I think it's more likely that you're having an issue with the redis version you are using rather than the uuid, regardless I've added a test to #603 just to validate that it does work.

@bearrito
Copy link
Author

bearrito commented Apr 5, 2024

Could be. I'm not working on this any longer. I'll close this.

@bearrito bearrito closed this as completed Apr 5, 2024
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

2 participants