Giter Site home page Giter Site logo

Comments (9)

Sembiance avatar Sembiance commented on July 20, 2024

The sample code you have works ok for me, no issues.

from redis-node-client.

sneeu avatar sneeu commented on July 20, 2024

I'm getting this same error with Redis 0.900 on Ubuntu 9.10, but not with Redis 1.2.0 on Ubuntu 10.04.

I'm using the latest version of node.js, and redis-node-client.

With debug on, the following output is given:

node-router server instance at http://0.0.0.0:8009/
DEBUG: [CONNECT]
DEBUG: [SEND] *2<CRLF>$4<CRLF>incr<CRLF>$19<CRLF>buffer:offset<CRLF> originalCommands = 1
DEBUG: [RECV] -ERR unknown command<CRLF>-ERR unknown command<CRLF>-ERR wrong number of arguments<CRLF>-ERR unknown command<CRLF>-ERR unknown command<CRLF>
DEBUG: [SEND] *3<CRLF>$5<CRLF>lpush<CRLF>$12<CRLF>buffer<CRLF>$200<CRLF>{"offset":null,"value":"value"}<CRLF> originalCommands = 1
DEBUG: [SEND] *3<CRLF>$5<CRLF>ltrim<CRLF>$1<CRLF>0<CRLF>$2<CRLF>30<CRLF> originalCommands = 1


/var/www/my_project/vendor/redis-client.js:394
    var callback = originalCommand[originalCommand.length - 1];
                                                  ^
TypeError: Cannot read property 'length' of undefined
    at Client.onReply_ (/var/www/my_project/vendor/redis-client.js:394:51)
    at /var/www/my_project/vendor/redis-client.js:143:30
    at ReplyParser.feed (/var/www/my_project/vendor/redis-client.js:160:55)
    at Stream.<anonymous> (/var/www/my_project/vendor/redis-client.js:337:28)
    at Stream.emit (events:25:26)
    at IOWatcher.callback (net:512:16)
    at node.js:266:9

from redis-node-client.

sneeu avatar sneeu commented on July 20, 2024

Upgrading Redis to 1.3.12 fixed this issue for me. I assume slightly earlier versions would fix it too.

from redis-node-client.

scsibug avatar scsibug commented on July 20, 2024

I had this problem with node 0.2.5 and redis 2.0.3. leepa has fixes for node 0.2.4+ here: https://github.com/leepa/redis-node-client

from redis-node-client.

nym avatar nym commented on July 20, 2024

I'm getting the same problem with Node v0.2.6, Redis 2.0.2, and redis-node-client 0.3.5. Publisher.js seems to work as expected.

from redis-node-client.

michaelhood avatar michaelhood commented on July 20, 2024

same issue on redis 2.2.1 with [email protected] and [email protected]

from redis-node-client.

tomaj avatar tomaj commented on July 20, 2024

same issue on redis 2.1.12 with [email protected] and [email protected]

from redis-node-client.

Sembiance avatar Sembiance commented on July 20, 2024

I switched to this: https://github.com/mranney/node_redis a long time ago. It gets updated pretty often and I've been using it production and it's been working great.

from redis-node-client.

tomaj avatar tomaj commented on July 20, 2024

thanks, its looks pretty good and its working

from redis-node-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.