ReplyError: ERR SELECT is not allowed in cluster mode
Problem
Seeing SELECT not allowed in cluster mode every time we connect to Redis. Exact Error Seen You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection: ReplyError: ERR SELECT is not allowed in cluster mode at JavascriptRedisParser.replyParser.Parser.returnError (/opt/app/node_modules/ioredis/lib/redis/parser.js:25:25) at JavascriptRedisParser.execute (/opt/app/node_modules/ioredis/node_modules/redis-parser/lib/parser.js:572:12) at Socket.<anonymous> (/opt/app/node_modules/ioredis/lib/redis/event_handler.js:107:22) at Socket.emit (events.js:107:17) at readableAddChunk (_stream_readable.js:163:16) at Socket.Readable.push (_stream_readable.js:126:10) at TCP.onread (net.js:540:20)
Error Output
Error: ERR SELECT is not allowed in cluster mode
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Solution: ReplyError: ERR SELECT is not allowed in cluster mode
Did you invoke SELECT command or set the "db" option explicitly? Get Outlook for iOS<https://aka.ms/o0ukef> ________________________________ From: Varun Dixit <notifications@github.com> Sent: Sunday, June 18, 2017 9:43:37 PM To: luin/ioredis Cc: Subscribed Subject: [luin/ioredis] ReplyError: ERR SELECT is not allowed in cluster mode (#485) Seeing SELECT not allowed in cluster mode every time we
Trust Score
1 verification
- 1
Did you invoke SELECT command or set the "db" option explicitly?
Did you invoke SELECT command or set the "db" option explicitly?
- 2
Get Outlook for iOS<https://aka.ms/o0ukef>
________________________________ From: Varun Dixit <notifications@github.com> Sent: Sunday, June 18, 2017 9:43:37 PM To: luin/ioredis Cc: Subscribed Subject: [luin/ioredis] ReplyError: ERR SELECT is not allowed in cluster mode (#485)
- 3
Seeing SELECT not allowed in cluster mode every time we connect to Redis.
Seeing SELECT not allowed in cluster mode every time we connect to Redis.
- 4
Step 4
You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub<https://github.com/luin/ioredis/issues/485>, or mute the thread<https://github.com/notifications/unsubscribe-auth/AAmz_vYD8hAZskbFknLRvxnSIRu3zMyuks5sFSmJgaJpZM4N9f87>.
Validation
Resolved in redis/ioredis GitHub issue #485. Community reactions: 0 upvotes.
Verification Summary
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep