Closed yanbo-huang closed 1 year ago
All right. I just found out that for Redis-Stack
server, the correct starting command is redis-stack-server ...
instead of redis-server ...
. I think that's why the has-redis-json
checks got no response.
So the solution is to change the entrypoint in the docker-compose
from command: redis-server --requirepass fakepass
to command: redis-stack-server --requirepass fakepass
.
The issue can be closed.
My environment and settings
Tool/library versions:
0.1.0
redis/redis-stack:latest
My configurations:
docker-comose file
...
REDIS_OM_URL=redis://:fakepass@localhost:6379/0
When you run any query like
MyUser.find(MyUser.user_id == some_user_id)
, it will throw exception:It failed internally when trying to check whether you have
RedisJson
and parse the command response, while it gets None as response.The find query is working fine if the
redis-stack
doesn't set therequirepass
and setREDIS_OM_URL
purely asredis://@localhost:6379/0
.Any idea on how to solve this issue? It seems like this is a bug in the library when it run
has_redisearch
checking.