Skip to content

Error: ERR operation not permitted #16

Description

@Thibaut

Hi

I have problem when using redis-node with RedisToGo. The following error is throwned once a connection has been idling for a few minutes: (probably = RedisToGo's timeout config)

vendor/redis-node/lib/client.js:590
    if (err) throw err;
             ^
Error: ERR operation not permitted

at Client.handleReply (vendor/redis-node/lib/client.js:287:25)
at Client.<anonymous> (native)
at Client.emit (events:31:17)
at Client.handleData (vendor/redis-node/lib/client.js:249:18)
at Stream.<anonymous> (native)
at Stream.emit (events:31:17)
at IOWatcher.callback (net:490:16)
at node.js:773:9

It's probably due to a timeout error, however, I couldn't find a way to catch it and reconnect.

I was expecting redis-node to reconnect automatically and try again, but that's not happening with this error. Even a listener on "connection error" does not catch the error, and the callback of whichever command failed is never called (the error happens indenpdently of the command sent).

I don't have this problem with my local installation of Redis but other clients (namely, redis-rb) are working fine with RedisToGo, even after a timeout.

Thanks for the help, and this lib.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions