{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"closed","user":{"avatar_url":"https://secure.gravatar.com/avatar/08bfa23f10d9a6529d2e24adb21d7e06?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"08bfa23f10d9a6529d2e24adb21d7e06","url":"https://api.github.com/users/craftgear","login":"craftgear","id":74779},"milestone":null,"updated_at":"2011-11-04T03:57:14Z","assignee":null,"labels":[],"closed_at":"2011-11-04T03:57:14Z","comments":10,"url":"https://api.github.com/repos/chjj/parted/issues/3","body":"This may not be an issue of parted.\r\n\r\nAt first, I posted this problem at [Zombie repository](https://github.com/assaf/zombie/issues/192)\r\nBut I am at a loss where to go.\r\nSo I'm here to seek help.\r\n\r\nHere's a story.\r\nI test my application (which is based on express) with zombie for functional tests.\r\n\r\nWhen I tested file upload function, I got weird error.\r\n\r\n* zombie + formidable = error\r\n* zombie + parted = error (which is shown below)\r\n* Firefox7 + formidable = ok\r\n* Firefox7 + parted = ok\r\n\r\nI guessed zimbie had some bugs at this point.\r\nBut,\r\n\r\n* zombie + strata (which adopted formidable codes) = ok\r\n* zombie + php = ok\r\n\r\nHmm, zombie works well other servers.\r\nThen I guessed any problems lurked somewhere in express.\r\n \r\nI traced codes of express, and of course them of parted.\r\nBut I couldn't find anything.\r\n\r\nDo you guys have any guesses?\r\nI appreciate any clues.\r\n\r\nThanks.\r\n\r\n\r\n```\r\nDEBUG: Error: Message underflow.\r\n    at [object Object]._error (/home/user/.nave/installed/0.4.12/lib/node_modules/parted/lib/multipart.js:315:7)\r\n    at [object Object].end (/home/user/.nave/installed/0.4.12/lib/node_modules/parted/lib/multipart.js:87:17)\r\n    at IncomingMessage.onend (stream.js:74:10)\r\n    at IncomingMessage.emit (events.js:81:20)\r\n    at HTTPParser.onMessageComplete (http.js:133:23)\r\n    at Socket.ondata (http.js:1029:22)\r\n    at Socket._onReadable (net.js:677:27)\r\n    at IOWatcher.onReadable [as callback] (net.js:177:10)\r\n\r\n```","html_url":"https://github.com/chjj/parted/issues/3","title":"DEBUG: Error: Message underflow.","number":3,"id":2096317,"created_at":"2011-10-31T12:20:42Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/08bfa23f10d9a6529d2e24adb21d7e06?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"08bfa23f10d9a6529d2e24adb21d7e06","url":"https://api.github.com/users/craftgear","login":"craftgear","id":74779},"updated_at":"2011-11-04T03:57:14Z","url":"https://api.github.com/repos/chjj/parted/issues/comments/2627055","body":"Hi, chjj.\r\nI have some progress.\r\n\r\nI could circumvent a \"Message underflow\" error and uploaded  a file by not sending headers['content-length'].\r\nBut I noticed an uploaded file remained base64 encoded strings.\r\n\r\nAnd I also noticed zombie against a php file upload script yielded the same result.\r\n\r\nI'm going to post this new problem on zombie repository.\r\n\r\nThanks for your help.  ","id":2627055,"created_at":"2011-11-04T03:57:14Z"}}