-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redis errors with ReplyError: ERR UNKOWN_CLIENT #212
Comments
FYI I used patch-package to implement the above suggestion and it works for me, thanks! Here is the diff that solved my problem: diff --git a/node_modules/bottleneck/lib/RedisDatastore.js b/node_modules/bottleneck/lib/RedisDatastore.js
index dc5943e..c7b8fdb 100644
--- a/node_modules/bottleneck/lib/RedisDatastore.js
+++ b/node_modules/bottleneck/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 === "ERR UNKNOWN_CLIENT") {
return _this3.runScript("register_client", [_this3.instance.queued()]).then(() => {
return _this3.runScript(name, args);
}); |
Did anyone discover why the prefix |
@justinadkins I haven't had a lot of extra time to get to the bottom of it but, I came across some commits in the redis repo that seems to suggest where the prepended The version 7 release notes also mention it as a Potentially Breaking Change for pull 10329. At this point I don't have a better option then to use patch-package to get around the issue. |
Thank you for this lightning fast, detailed response @wmr-trevor 🙏. We are also going to use patch-package to resolve this for now. |
@wmr-trevor thanks for the detailed clarification, if anybody faces the same issue here is a working solution in my repo: published npm package: |
I was facing exactly this issue, thanks for the solutions provided! 👏 |
Similar compatibility issue including SETTINGS_KEY_NOT_FOUND There is a package with both fixes |
There appears to be an issue with redis connections. They work fine for a time and then they seem to break.
It appears to me as if the error message that was used to determine if the client should be re-registered has changed. Instead of it only being
UNKNOWN_CLIENT
it is nowERR UNKOWN_CLIENT
bottleneck/src/RedisDatastore.coffee
Line 89 in b835283
The error received. This error happens exactly every 5 seconds.
In my setup I am passing in the redis connection details directly and using the redis datastore option.
The text was updated successfully, but these errors were encountered: