Lepozepo / cloudinary

MIT License
94 stars 42 forks source link

When uploading multiple images at the same time I get a 'Future resolved more than once' error #7

Open cramhead opened 10 years ago

cramhead commented 10 years ago

I haven't yet started looking to deeply into the error, but I figured I should let you know as other may have this same problem.

Some of the images do get uploaded. Others fail to upload with error below.

The source looks like

{{#c_upload_stream callback="savePendingImageUrl"}}
     <input class="fileUploader" type="file" multiple="true">
{{/c_upload_stream}}
W20140725-20:42:29.386(-7)? (STDERR) /Users/cram/.meteor/tools/858c88b520/lib/node_modules/fibers/future.js:154
W20140725-20:42:29.387(-7)? (STDERR)            throw new Error('Future resolved more than once');
W20140725-20:42:29.387(-7)? (STDERR)                  ^
W20140725-20:42:29.391(-7)? (STDERR) Error: Future resolved more than once
W20140725-20:42:29.392(-7)? (STDERR)     at Object.Future.return (/Users/cram/.meteor/tools/858c88b520/lib/node_modules/fibers/future.js:154:10)
W20140725-20:42:29.392(-7)? (STDERR)     at packages/cloudinary/server.js:62
W20140725-20:42:29.392(-7)? (STDERR)     at handle_response (/Users/cram/.meteorite/packages/cloudinary/Lepozepo/cloudinary/b415d480afd8af90c52bd1b6b7d594d1196abc0d/.build/npm/node_modules/cloudinary/lib/uploader.coffee:363:16)
W20140725-20:42:29.393(-7)? (STDERR)     at ClientRequest.<anonymous> (/Users/cram/.meteorite/packages/cloudinary/Lepozepo/cloudinary/b415d480afd8af90c52bd1b6b7d594d1196abc0d/.build/npm/node_modules/cloudinary/lib/uploader.coffee:445:16)
W20140725-20:42:29.393(-7)? (STDERR)     at ClientRequest.EventEmitter.emit (/Users/cram/.meteorite/packages/winston-client/farpoint/meteor-winston-client/bc9959bf320e7745052d42e84038b27eec0b1a68/.build/npm/node_modules/util/node_modules/events.node/events.js:72:17)
W20140725-20:42:29.394(-7)? (STDERR)     at CleartextStream.socketErrorListener (http.js:1547:9)
W20140725-20:42:29.394(-7)? (STDERR)     at CleartextStream.EventEmitter.emit (/Users/cram/.meteorite/packages/winston-client/farpoint/meteor-winston-client/bc9959bf320e7745052d42e84038b27eec0b1a68/.build/npm/node_modules/util/node_modules/events.node/events.js:72:17)
W20140725-20:42:29.395(-7)? (STDERR)     at Socket.onerror (tls.js:1445:17)
W20140725-20:42:29.395(-7)? (STDERR)     at Socket.EventEmitter.emit (/Users/cram/.meteorite/packages/winston-client/farpoint/meteor-winston-client/bc9959bf320e7745052d42e84038b27eec0b1a68/.build/npm/node_modules/util/node_modules/events.node/events.js:89:20)
W20140725-20:42:29.395(-7)? (STDERR)     at net.js:440:14
Lepozepo commented 10 years ago

:O I'll look into it as soon as I get a chance but if you can find the error feel free to submit a PR.

Lepozepo commented 10 years ago

Hmm, I can't seem to replicate the error. What did you upload? It might be an issue with Cloudinary emitting two results for a single file for some reason.

cramhead commented 10 years ago

I uploaded multiple files at the same time. They were all images, either jpg or png.

On Mon, Jul 28, 2014 at 3:44 PM, Marcelo Reyna notifications@github.com wrote:

Hmm, I can't seem to replicate the error. What did you upload? It might be an issue with Cloudinary emitting two results for a single file for some reason.

— Reply to this email directly or view it on GitHub https://github.com/Lepozepo/cloudinary/issues/7#issuecomment-50412757.