Giter Site home page Giter Site logo

Comments (4)

Sembiance avatar Sembiance commented on July 20, 2024

I'm getting this too.

Here is how you reproduce it:

redis.hmget("AntKey", "any0", "any1", "any2", "any3", function() {} );

That will produce this exception:

                      reply.value[0].value.length == 8 &&
                                          ^
TypeError: Cannot read property 'length' of null
    at Client.handlePublishedMessage_ (/mnt/compendium/DevLab/lib/redis-node-client/lib/redis-client.js:427:43)
    at Client.onReply_ (/mnt/compendium/DevLab/lib/redis-node-client/lib/redis-client.js:390:14)
    at /mnt/compendium/DevLab/lib/redis-node-client/lib/redis-client.js:136:34
    at ReplyParser.feed (/mnt/compendium/DevLab/lib/redis-node-client/lib/redis-client.js:183:29)
    at Stream. (/mnt/compendium/DevLab//lib/redis-node-client/lib/redis-client.js:337:28)
    at Stream.emit (events:25:26)
    at IOWatcher.callback (net:510:16)
    at node.js:228:9

You get a slightly different error if you reduce the number of keys requested down to 3.

If you reduce it to two, it doesn't throw any exceptions.

from redis-node-client.

Sembiance avatar Sembiance commented on July 20, 2024

I made a patch, you can find it here:
http://www.telparia.com/redis-client.js.patch

Seems to work, but I don't have enough understanding of the code to know whether or not this causes more issues.

from redis-node-client.

MiketoString avatar MiketoString commented on July 20, 2024

Seeing the same issue, patched seemed to fix it for me as well. Getting error on a "smembers" call.

from redis-node-client.

lacker avatar lacker commented on July 20, 2024

It looks like this happens when you do a hmget on a key that doesn't exist yet.

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.