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 'ended' of undefined #77

Closed
amir20 opened this issue Nov 27, 2016 · 2 comments
Closed

TypeError: Cannot read property 'ended' of undefined #77

amir20 opened this issue Nov 27, 2016 · 2 comments

Comments

@amir20
Copy link

amir20 commented Nov 27, 2016

I am using this module with split2 and I consistently get this error.

 if (state.ended) writeAfterEnd(this, cb);else if (validChunk(this, state, chunk, cb)) {
           ^

TypeError: Cannot read property 'ended' of undefined
    at DestroyableTransform.Object.<anonymous>.Writable.write (/phantomjs-node/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:239:12)
    at Socket.ondata (_stream_readable.js:555:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:176:18)
    at Socket.Readable.push (_stream_readable.js:134:10)
    at Pipe.onread (net.js:551:20)
npm ERR! Test failed.  See above for more details.

I haven't found any other issues similar to this. Does anybody have any idea what is going on?

@juliangruber
Copy link

this seems to be a problem either with split2 or readable-stream. through2 is a super tiny wrapper and I don't suspect it to cause the bug here

@amir20
Copy link
Author

amir20 commented Nov 27, 2016

OK. I'll post it on split2. Thanks for response! Feel free to close.

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

3 participants