redis.exceptions.ResponseError: unknown command 'module'

See original GitHub issue

Hi,

So basically trying to reproduce what @simonprickett did here except that i’m doing it on Redis cloud instead of locally or using a venv or docker or whatever.

So i’ve managed to successfully write to the redis db cloud after properly configuring REDIS_OM_URL to point at the proper endpoint x credentials, now when I perform a rediSearch query ex: Adoptable.find(Adoptable.name == "Poppy").all() I get the error redis.exceptions.ResponseError: unknown command 'module' Another way of reproducing the above is as follows:

from redis import ResponseError
try:
    Adoptable.find(Adoptable.name == "Poppy").all()
except ResponseError as e:
    print(e)

I’ve googled the above type of error but all i see is the same type of error but the word ‘module’ being swapped by different terms (ex: like JSON.GET whose solution was to include redisJSON) Any help is appreciated, thank you.

PS: yes i have created my database by properly including modules rediSearch and redisJSON.

ahmad

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
therealbazzicommented, Jan 6, 2022

Oh now it works. !! Thanks a lot @simonprickett … I had to kill all ports running 6379 (had like 5 running for no reason or maybe because i did something previously on my laptop like redis-server start)

Thanks a lot man !

1reaction
simonprickettcommented, Jan 6, 2022

REDIS_OM_URL

echo $REDIS_OM_URL gives redis://@127.0.0.1:6379 I have set this manually … Also tried to unset on terminal as unset REDIS_OM_URL still same error

PS: Yes docker is running on localhost:6379 and is writing properly on the redis db on RedisInsight (i see that). PSS: I’ve changed to REDIS_OM_URL to export REDIS_OM_URL=redis://@localhost:6379/ still doesn’t work

Can you share a project repo URL that I can look at and try and reproduce?

Also try stopping all the containers with docker ps then docker stop <id>, and restart using my Docker Compose. That will make sure the right container’s on 6379.

Read more comments on GitHub >

github_iconTop Results From Across the Web

redis.exceptions.ResponseError: unknown command ' ...
It seems like the RedisJSON module is not loaded in your DB. · But it's RedisLabs clouds, and they said that was one...
Read more >
unknown command `BF.RESERVE`, with args beginning ...
bfCreate('bloom', 0.01, 1000) fail: redis.exceptions.ResponseError: unknown command BF.RESERVE, with args beginning with: bloom, 0.01, 1000.
Read more >
unable to run the redisgraph commands in redis-cli
I have run all basics redis commands but when I run redisgraph command then I got an error that "unknown command " ex-...
Read more >
Redis::CommandError: ERR unknown command - GitLab.org
Summary Redis fails with Redis::CommandError: ERR unknown command. This has been reported by two customers:
Read more >
Redis: Unknown error occurring with 'JSON.SET'
redis.clients.jedis.exceptions.JedisDataException: ERR unknown command 'JSON.SET', with args beginning with: 'data.domain.redis.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found