redis-node-client
redis-node-client copied to clipboard
Cannot read property 'length' of undefined
Getting this when I connect to Redis:
TypeError: Cannot read property 'length' of undefined
/usr/local/lib/node/.npm/redis-client/0.3.5/package/lib/redis-client.js:394
var callback = originalCommand[originalCommand.length - 1];
This just started happening to me also when I updated to the latest version of node, 0.2.4. Everything was fine on node 0.2.3 and earlier.
Just chiming in to confirm theturtle32's report:
At least the SET and SUBSCRIBE commands are broken when using this client (as of https://github.com/fictorial/redis-node-client/commit/8a30946f796cc50cb01ba68dac3b6df27860c76d ) with node 0.2.4.
Downgrading to 0.2.3 results in working commands again.
Maccman patched it, and his patch works great: https://github.com/maccman/redis-node-client