Skip to content

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

Closed
@its-dibo

Description

@its-dibo

Description

this.repo = new Repository(schema, this.redisClient); // I'm using redis-om@0.4
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",
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions