Skip to content

migrating from v4 to v5 causes error for reading JSON #2941

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

Closed
its-dibo opened this issue May 4, 2025 · 1 comment · Fixed by #2944
Closed

migrating from v4 to v5 causes error for reading JSON #2941

its-dibo opened this issue May 4, 2025 · 1 comment · Fixed by #2944
Assignees
Labels

Comments

@its-dibo
Copy link

its-dibo commented May 4, 2025

Description

this.repo = new Repository(schema, this.redisClient); // I'm using [email protected]
await this.repo.save('id', { x: 1}); 

this.repo.fetch("id"); // returns `[: 0: {` <----------------------------------

Previously, this was stored as a JSON object; now it is stored as an array that contains JSON
downgrading redis version to v4 the behavior is fixed

Node.js Version

22.14.0

Redis Server Version

5.0.0

Node Redis Version

5.0.0

Platform

ubuntu v24

Logs

{
 "redis": "^5.0.0",
 "redis-om": "^0.4.7",
}
@its-dibo its-dibo added the Bug label May 4, 2025
@nkaradzhov nkaradzhov self-assigned this May 5, 2025
nkaradzhov added a commit to nkaradzhov/node-redis that referenced this issue May 5, 2025
there was some sort of a circular dependency
in <module>/lib/commands/index.ts for various modules

fixes redis#2937 fixes redis#2941
@its-dibo
Copy link
Author

nice effort @nkaradzhov

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

Successfully merging a pull request may close this issue.

2 participants