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

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

Open
boughtonp opened this issue Aug 20, 2019 · 1 comment
Open

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

boughtonp opened this issue Aug 20, 2019 · 1 comment

Comments

@boughtonp
Copy link

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?

@Rixoro
Copy link

Rixoro commented Apr 9, 2020

Any updates or status on this? This is currently affecting a project I am working on

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

2 participants