From ae1de635e12ed5d7f3d027c5081c6e57095cf810 Mon Sep 17 00:00:00 2001 From: frook1 Date: Tue, 13 Jun 2023 13:42:40 +0200 Subject: [PATCH] Update RedisDatastore.js fix for ERR UNKNOWN_CLIENT, which comes from redis 7(https://github.com/redis/redis/blame/e7f18432b8e9e1d1998d3a898006497e6c5e5a32/src/script_lua.c#L1583) --- lib/RedisDatastore.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/RedisDatastore.js b/lib/RedisDatastore.js index dc5943e..577a397 100644 --- a/lib/RedisDatastore.js +++ b/lib/RedisDatastore.js @@ -181,7 +181,7 @@ RedisDatastore = class RedisDatastore { return _this3.runScript(name, args); }); } - } else if (e.message === "UNKNOWN_CLIENT") { + } else if (e.message === "UNKNOWN_CLIENT" || e.message === "ERR UNKNOWN_CLIENT") { return _this3.runScript("register_client", [_this3.instance.queued()]).then(() => { return _this3.runScript(name, args); });