redis / redis/node-redis

sMembers error = undefined

Open
#2,113 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Pending Author Input
Dominant language
TypeScript
Stars
17.6k
Forks
2k
Avg merge
2d 3h
Merged PRs (30d)
40

Description

Hi guys. Need quick help.
After i'm doing sadd and print in command promt redis-cli smembers it works
But!
When i'm trying await redisClient.sMembers('MyKey') if always undefiend.
How can i get value of my key?

Environment:

  • Node.js Version: v16.14.2
  • Redis Server Version: Redis server v=3.0.504 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=a4f7a6e86f2d60b3
  • Node Redis Version: "redis": "^4.0.6"
  • Platform: Windows 10, Mac OS 11.6 -->

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the sMembers entry point in node-redis and compare its result with the redis-cli SMEMBERS command for MyKey. Check the reported Node.js, node-redis, and Redis versions while tracing the call and connection context. Done means the client call returns the set members rather than undefined.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, redis
Domain
databases
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.