Skip to content
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.Cluster [ioredis] Unhandled error event: Error: Connection is closed. #337

Closed
frank198 opened this issue Jun 17, 2016 · 2 comments
Closed

Comments

@frank198
Copy link

ioredis version:2.0.1
I use redis cluster connect

let redisClusterConfig=[
            {
                host:"127.0.0.1",
                port:7001
            },
            {
                host:"127.0.0.1",
                port:7002
            },
            {
                host:"127.0.0.1",
                port:7003
            },
            {
                host:"127.0.0.1",
                port:7004
            },
            {
                host:"127.0.0.1",
                port:7005
            },
            {
                host:"127.0.0.1",
                port:7006
            }
        ]
let redisClient = new redis.Cluster(redisCluster);

Error:

[ioredis] Unhandled error event: Error: Connection is closed.
    at close (/home/frank/Project/NodeJs/ccjh/node_modules/ioredis/lib/redis/event_handler.js:99:21)
    at Socket.<anonymous> (/home/frank/Project/NodeJs/ccjh/node_modules/ioredis/lib/redis/event_handler.js:74:14)
    at Socket.g (events.js:286:16)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at TCP._handle.close [as _onclose] (net.js:492:12)
@luin
Copy link
Collaborator

luin commented Jun 18, 2016

Seems to be fixed in #322. Not released though.

@luin
Copy link
Collaborator

luin commented Jun 22, 2016

Should be fixed in v2.1.0. Closing...

@luin luin closed this as completed Jun 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants