From bb8a69a33bf1947b14425aa249ab1ef6b7ca96c4 Mon Sep 17 00:00:00 2001 From: mfeerick Date: Tue, 30 May 2023 12:08:48 +0100 Subject: [PATCH] Update connection.js connectRedis throws an exception. ReplyError: NOAUTH Authentication required. The redis password should be supplied in a password property. See Line 71 of https://github.com/luin/ioredis/blob/v4.28.5/lib/redis/RedisOptions.ts --- lib/connection.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/connection.js b/lib/connection.js index 00b6f89..d001700 100644 --- a/lib/connection.js +++ b/lib/connection.js @@ -133,7 +133,8 @@ Connection.prototype.connectRedis = function (config, callback) { port: config.port, host: config.host, enableReadyCheck: true, - showFriendlyErrorStack: true + showFriendlyErrorStack: true, + password: config.redis_auth }) if (config.redis_auth) { client.auth(config.redis_auth)