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

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

Open
lRafaelOliveira opened this issue Oct 21, 2021 · 2 comments
Open

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

lRafaelOliveira opened this issue Oct 21, 2021 · 2 comments

Comments

@lRafaelOliveira
Copy link

lRafaelOliveira commented Oct 21, 2021

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
Copy link
Contributor

  • How are you running the server on windows?
  • Are you using the docker?
  • Did you load the RedisJSON module?

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

@katiany
Copy link

katiany commented Dec 13, 2023

@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' '.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants