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

json.type failing with internal server error #60

Open
1 of 2 tasks
lucifercr07 opened this issue Dec 17, 2024 · 4 comments
Open
1 of 2 tasks

json.type failing with internal server error #60

lucifercr07 opened this issue Dec 17, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@lucifercr07
Copy link
Contributor

Bug Category

  • UI
  • Backend

Steps to Reproduce

  1. Trigger commands on Playground CLI as below:
dice > json.set test test {"h":"w"}
OK
dice > json.get test test
{"h":"w"}
dice > json.type test test
internal server error

Expected Behavior

  • json.type output should be correct
dice > json.type test test
"object"

Actual Behavior

dice > json.type test test
internal server error
@lucifercr07 lucifercr07 added the bug Something isn't working label Dec 17, 2024
@bhima2001
Copy link

Can I work on this?

@lucifercr07
Copy link
Contributor Author

@bhima2001 assigned, thanks for contributing.

@lucifercr07 lucifercr07 changed the title json.type failing with `internal server error json.type failing with internal server error Dec 17, 2024
@bhima2001
Copy link

From DiceDB, when we execute JSON.TYPE it is returing an array of strings and when we try to cast it to a string we are getting this error. The expected output from DiceDB is a single string.

@bhima2001
Copy link

@lucifercr07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants