-
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
ERR SETTINGS_KEY_NOT_FOUND with redis 7.0.7 #219
Comments
I have fixed this compatibility issue in the fork repo https://github.com/maselious/bottleneck And published the package https://www.npmjs.com/package/@maselious/bottleneck Feel free to use |
This might fix the above mentioned error, but rate limiting does not work at all when using redis |
@maselious thank you for sharing this update. As I'm comparing against the fork of Sergiiivzhenko, I noticed this diff. Could you help explain why that formatting change to the repo url was introduced? It may just be a syntactic convention I am unfamiliar with. thank you. |
I tried different forks and concluded, this one is "stable" and working for me: https://github.com/usehaystack/bottleneck I am doing a huge amount of requests and have many (~100) different bottlenecks with each one having its own config. Still in testing phase, but planning to roll this out to production. However, it's kinda scary to use an unmaintained library. Planning to reach out to |
If shortly it is a best practice. Longer (TLDR):
|
thank you @maselious for the detailed explanation! |
I encountered an issue when using Redis 7+ because they introduced a new "ERR" prefix for all errors. This change caused the error handlers in Bottleneck to malfunction. To address this, I discovered a fork of Bottleneck at https://github.com/Sergiiivzhenko/bottleneck, where the "UNKNOWN_CLIENT" issue had been resolved. However, the "SETTINGS_KEY_NOT_FOUND" issue remained unresolved in that fork. In response, I decided to merge the commits from the fork and make additional modifications to support the "SETTINGS_KEY_NOT_FOUND" issue. Upon reviewing the code changes, I determined that there were no critical alterations that would affect the stability of the package. I have been using my fork in a production environment with a Redis 7 cluster, and it has been working successfully. In the event that Bottleneck releases a critical patch or update, I will promptly incorporate those changes into my fork to ensure its continued reliability. However, i dont promise doing it immediately. |
For some reason, your fork did not work for me with redis |
I am also experiencing this error here #195 Seems to happen rarely, but I am also not under heavy load situations yet. |
Bumping this. Also experiencing this issue. |
Yep, I am also experiencing this - actually I resolved this. I saw that the API I was sending a request to was taking longer to respond that my expiry time, and so the request would go from executing, to scheduled (because the request expired and was retried) to done (because the previous request would return a response). |
ReplyError: ERR SETTINGS_KEY_NOT_FOUND
at parseError (/var/app/current/node_modules/redis-parser/lib/parser.js:179:12)
at parseType (/var/app/current/node_modules/redis-parser/lib/parser.js:302:14)
Do we have any workaround to resolve this issue?
Or do we have any alternate library?
The text was updated successfully, but these errors were encountered: