Skip to content

TypeError: Cannot read property 'length' of null #54

Description

@boughtonp

Every now and then the error below occurs and crashes Node.
The specific circumstances which trigger it are unknown.

/opt/nodeapp/node_modules/redis-parser/lib/parser.js:560
  while (this.offset < this.buffer.length) {
                                   ^

TypeError: Cannot read property 'length' of null
    at JavascriptRedisParser.execute (/opt/nodeapp/node_modules/redis-parser/lib/parser.js:560:36)
    at Socket.<anonymous> (/opt/nodeapp/node_modules/redis/index.js:274:27)
    at emitOne (events.js:115:13)
    at Socket.emit (events.js:210:7)
    at addChunk (_stream_readable.js:263:12)
    at readableAddChunk (_stream_readable.js:250:11)
    at Socket.Readable.push (_stream_readable.js:208:10)
    at TCP.onread (net.js:597:20)

Running node-redis 2.8.0 and thus node-redis-parser 2.6.0 on Node v8.8.1, AWS Linux

I see there's a node-redis-parser v3.0.0 which has made changes that may or not effect this error, but no updated version of node-redis to use it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions