felixge/node-formidable — Issue #122: New version giving strange error
Author: jwingy
Created: 2012-01-03 17:29:32+00:00
State: open

Sorry I can't be more descriptive, but I'm not sure what's going on here except that my multipart upload requests work on a older version of formidable/connect/express. I'm also perplexed why the stacktrace references the connect-redis module.......

I'm using this line of code that fails: req.form.completed(err, fields, files)

This did work on formidable@1.0.7, express@2.5.0, connect@1.7.2, but not on formidable@1.0.8, express@2.5.4, connect@1.8.5.

Here's the stacktrace:

Error: MultipartParser.end(): stream ended unexpectedly: state = START
at MultipartParser.end (/home/j1y/node_modules/connect-form/node_modules/formidable/lib/multipart_parser.js:306:12)
at IncomingMessage. (/home/j1y/node_modules/connect-form/node_modules/formidable/lib/incoming_form.js:98:30)
at IncomingMessage.emit (events.js:88:20)
at Object.resume (/home/j1y/node_modules/express/node_modules/connect/lib/utils.js:226:18)
at /home/j1y/node_modules/express/node_modules/connect/lib/middleware/session.js:324:15
at /home/j1y/node_modules/express/node_modules/connect/lib/middleware/session.js:342:9
at /home/j1y/node_modules/connect-redis/lib/connect-redis.js:85:9
at try_callback (/home/j1y/node_modules/connect-redis/node_modules/redis/index.js:466:9)
at RedisClient.return_reply (/home/j1y/node_modules/connect-redis/node_modules/redis/index.js:503:13)
at RedisReplyParser. (/home/j1y/node_modules/connect-redis/node_modules/redis/index.js:259:14)
at RedisReplyParser.emit (events.js:67:17)
at RedisReplyParser.send_reply (/home/j1y/node_modules/connect-redis/node_modules/redis/lib/parser/javascript.js:279:18)
at RedisReplyParser.execute (/home/j1y/node_modules/connect-redis/node_modules/redis/lib/parser/javascript.js:223:22)
at RedisClient.on_data (/home/j1y/node_modules/connect-redis/node_modules/redis/index.js:422:27)
at Socket. (/home/j1y/node_modules/connect-redis/node_modules/redis/index.js:66:14)
at Socket.emit (events.js:67:17)
at TCP.onread (net.js:329:14)