node-formidable / formidable

The most used, flexible, fast and streaming parser for multipart form data. Supports uploading to serverless environments, AWS S3, Azure, GCP or the filesystem. Used in production.
MIT License
7.06k stars 683 forks source link

this._readWatcher.stop(); issue #4

Closed tj closed 14 years ago

tj commented 14 years ago

heres the trace net:945 this._readWatcher.stop(); ^ TypeError: Cannot call method 'stop' of null at Stream.pause (net:945:21) at IncomingMessage.pause (http:223:15) at IncomingForm.pause (/Users/tj/.node_libraries/.npm/formidable/0.9.3/package/lib/formidable/incoming_form.js:34:9) at IncomingForm._error (/Users/tj/.node_libraries/.npm/formidable/0.9.3/package/lib/formidable/incoming_form.js:203:8) at IncomingForm.resume (/Users/tj/.node_libraries/.npm/formidable/0.9.3/package/lib/formidable/incoming_form.js:42:12) at /Users/tj/.node_libraries/.npm/formidable/0.9.3/package/lib/formidable/incoming_form.js:153:12 at fs:842:25 at node.js:221:9

and the script i was using http://gist.github.com/457572

felixge commented 14 years ago

Thanks! I had this on the radar, but hadn't gotten around to it yet since I've only seen it a single time in production so far.

Anyway, this should be fixed in 3988f82c177635cb7654ba5e8af07814f04153a9.

Please upgrade to v0.9.4 and let me know if the problem is gone for you!