Object #<Stream> has no method 'destroy' #11

Closed
koenpunt opened this Issue Jul 16, 2012 · 3 comments

Projects

None yet

2 participants

Contributor

Getting this error:

./node_modules/tuiter/lib/request.js:164
      stream.destroy();
             ^
TypeError: Object #<Stream> has no method 'destroy'
Owner

'destroy' is a method exposed by the Node.js Stream module http://nodejs.org/api/stream.html#stream_stream_destroy

Which node.js version are you using?

Contributor

I know, but in your code stream is an instance of events.EventEmitter, not of Stream

Owner

You are right. I forget about that.

Merging...

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