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

Cannot read property 'length' of undefined #43

Open
maccman opened this issue Oct 28, 2010 · 4 comments
Open

Cannot read property 'length' of undefined #43

maccman opened this issue Oct 28, 2010 · 4 comments

Comments

@maccman
Copy link

maccman commented Oct 28, 2010

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

@theturtle32
Copy link

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.

@htp
Copy link

htp commented Nov 3, 2010

Just chiming in to confirm theturtle32's report:

At least the SET and SUBSCRIBE commands are broken when using this client (as of 8a30946 ) with node 0.2.4.

Downgrading to 0.2.3 results in working commands again.

@theturtle32
Copy link

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

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

4 participants
@maccman @htp @theturtle32 and others