Skip to content

Empty object property values #14

@grippy

Description

@grippy

In the process of migrating an app from 2.0x version of redis-node to use v0.4.0. I've noticed an error in how hash dictionaries load.

Passing an empty string on key/value returns this error:

{
events: '',
created_at: 1297652538454
}

node.js:116
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Offset is out of bounds
at Socket._writeImpl (net.js:138:14)
at Socket._writeOut (net.js:427:25)
at Socket.flush (net.js:506:24)
at Socket._onWritable (net.js:584:12)
at Socket._onConnect (net.js:572:12)
at IOWatcher.onWritable as callback

This previously worked with node v0.2.5 and redis-node which was targeted at 0.2.x.

Have you seen this before?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions