redis-node-client icon indicating copy to clipboard operation
redis-node-client copied to clipboard

Cannot read property 'length' of undefined

Open maccman opened this issue 14 years ago • 4 comments

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];

maccman avatar Oct 28 '10 08:10 maccman

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.

theturtle32 avatar Oct 31 '10 15:10 theturtle32

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.

htp avatar Nov 03 '10 17:11 htp

Maccman patched it, and his patch works great: https://github.com/maccman/redis-node-client

theturtle32 avatar Nov 07 '10 01:11 theturtle32