chjj/parted — Issue #3: DEBUG: Error: Message underflow.
Author: craftgear
Created: 2011-10-31 12:20:42+00:00
State: open

This may not be an issue of parted.

At first, I posted this problem at [Zombie repository](https://github.com/assaf/zombie/issues/192)
But I am at a loss where to go.
So I'm here to seek help.

Here's a story.
I test my application (which is based on express) with zombie for functional tests.

When I tested file upload function, I got weird error.

* zombie + formidable = error
* zombie + parted = error (which is shown below)
* Firefox7 + formidable = ok
* Firefox7 + parted = ok

I guessed zimbie had some bugs at this point.
But,

* zombie + strata (which adopted formidable codes) = ok
* zombie + php = ok

Hmm, zombie works well other servers.
Then I guessed any problems lurked somewhere in express.

I traced codes of express, and of course them of parted.
But I couldn't find anything.

Do you guys have any guesses?
I appreciate any clues.

Thanks.

```
DEBUG: Error: Message underflow.
at [object Object]._error (/home/user/.nave/installed/0.4.12/lib/node_modules/parted/lib/multipart.js:315:7)
at [object Object].end (/home/user/.nave/installed/0.4.12/lib/node_modules/parted/lib/multipart.js:87:17)
at IncomingMessage.onend (stream.js:74:10)
at IncomingMessage.emit (events.js:81:20)
at HTTPParser.onMessageComplete (http.js:133:23)
at Socket.ondata (http.js:1029:22)
at Socket._onReadable (net.js:677:27)
at IOWatcher.onReadable [as callback] (net.js:177:10)

```