-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TypeError: undefined is not a function #196
Comments
Could you please post the result of command |
there you go:
I think the issue happened when the cluster was not in its OK state, maybe during promotion or some other state |
This looks like the issue I had during the tests, and it was already fixed in the modern versions of ioredis |
But the issue is at this line: I don't see any check of the response in the master branch |
That's strange. It seems that redis guarantees |
It doesn't happen anymore, it only happened last night during a cluster failover. |
Just checked the source code of cluster slots command: https://github.com/antirez/redis/blob/unstable/src/cluster.c#L3737. Haven't find out why @AVVS Are you able to reproduce the error (using the 1.7.6 version)? |
Thought was related to #56, but doesn't seem to be. Either way that was when cluster wasn't yet initialized and not all slots were allocated yet. In the recent versions I haven't seen it once and can't really try 1.7.6 at this point - these test sets are long gone 👎 |
I'm not sure its related to redis. |
I believe this can be closed as i have yet to witness it again using the latest version |
Hi,
Using ioredis 1.7.6, we observed the following issue.
It probably happens if for some reason the response received from redis is incorrect (maybe timed out).
You should add a check that the response exists and is correct?
The text was updated successfully, but these errors were encountered: