RedisJSON / redisjson-py

An extension to redis-py for using Redis' ReJSON module
https://redisjson.io
BSD 2-Clause "Simplified" License
161 stars 35 forks source link

redis.exceptions.ResponseError: unknown command 'JSON.SET' #62

Open lRafaelOliveira opened 2 years ago

lRafaelOliveira commented 2 years ago

Ola, Estou tentando Utilizar o REJSON no python, ja iniciei utilizando o pip install rejson, instala normal, porem sempre me retorna esse erro, que nao esta encontrando o comando JSON.SET.. o que poderia ser ? estou rodando o servidor redis no localhost do windows..


  File "d:\RAFA\WHATSAPP\whatsapp-bot\redis2.py", line 7, in <module>
    r.execute_command('JSON.SET',"dic")
  File "C:\Users\hto-r\AppData\Local\Programs\Python\Python39\lib\site-packages\redis\client.py", line 901, in execute_command
    return self.parse_response(conn, command_name, **options)
  File "C:\Users\hto-r\AppData\Local\Programs\Python\Python39\lib\site-packages\redis\client.py", line 915, in parse_response
    response = connection.read_response()
  File "C:\Users\hto-r\AppData\Local\Programs\Python\Python39\lib\site-packages\redis\connection.py", line 756, in read_response
    raise response
redis.exceptions.ResponseError: unknown command 'JSON.SET'   ```
gkorland commented 2 years ago

Please check: https://oss.redis.com/redisjson/

katiany commented 7 months ago

@lRafaelOliveira would you remember how you managed to solve this error? I'm getting the same error here.

I have a docker image running redis and an application that should be connecting to it. I'm able to connect to the docker image running redis on terminal and run the commands just fine (e.g. JSON.GET) But when my application tries running the same command, I see the error: redis.exceptions.ResponseError: unknown command 'JSON.GET', with args beginning with: 'store:1234' '.'