{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/skipper-s3/issues/22","labels_url":"https://api.github.com/repos/balderdashy/skipper-s3/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/skipper-s3/issues/22/comments","events_url":"https://api.github.com/repos/balderdashy/skipper-s3/issues/22/events","html_url":"https://github.com/balderdashy/skipper-s3/issues/22","id":66341839,"number":22,"title":"getting uncaught error event w/ sails and skipper-s3","user":{"login":"mikedevita","id":2991640,"avatar_url":"https://avatars.githubusercontent.com/u/2991640?v=3","gravatar_id":"","url":"https://api.github.com/users/mikedevita","html_url":"https://github.com/mikedevita","followers_url":"https://api.github.com/users/mikedevita/followers","following_url":"https://api.github.com/users/mikedevita/following{/other_user}","gists_url":"https://api.github.com/users/mikedevita/gists{/gist_id}","starred_url":"https://api.github.com/users/mikedevita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikedevita/subscriptions","organizations_url":"https://api.github.com/users/mikedevita/orgs","repos_url":"https://api.github.com/users/mikedevita/repos","events_url":"https://api.github.com/users/mikedevita/events{/privacy}","received_events_url":"https://api.github.com/users/mikedevita/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":15,"created_at":"2015-04-04T17:12:02Z","updated_at":"2015-07-28T06:13:31Z","closed_at":null,"body":"Trying to do file uploads but receiving an error when the file upload kicks off.. \r\n\r\n\r\n**The code that im using is..**\r\nI have validated that my connections object has all the right information and that I can push files via the cli to s3 using the same keys. I also validated that the files are being created in `.tmp/s3-upload-part-queue`...\r\n\r\n```javascript\r\n      req.file('titleImageLarge').upload({\r\n        adapter: require('skipper-s3'),\r\n        key: sails.config.connections.s3FileStore.key,\r\n        secret: sails.config.connections.s3FileStore.secret,\r\n        bucket: sails.config.connections.s3FileStore.bucket,\r\n      }, function whenDone(err, uploadedFiles){\r\n\r\n        if(err) {\r\n          console.log(err);\r\n          return res.send(err);\r\n        }\r\n\r\n        res.send(uploadedFiles);\r\n      });\r\n```\r\n\r\n**and the error that I am receiving is...**\r\n\r\n    events.js:74\r\n            throw TypeError('Uncaught, unspecified \"error\" event.');\r\n                  ^\r\n    TypeError: Uncaught, unspecified \"error\" event.\r\n        at TypeError (<anonymous>)\r\n        at Writable.emit (events.js:74:15)\r\n        at /Users/mhdevita/Web/AZ Supras/events/backend/node_modules/skipper-s3/index.js:238:22\r\n        at PassThrough.<anonymous> (/Users/mhdevita/Web/AZ Supras/events/backend/node_modules/skipper-s3/node_modules/knox-mpu-alt/lib/multipartupload.js:328:16)\r\n        at PassThrough.emit (events.js:117:20)\r\n        at /Users/mhdevita/Web/AZ Supras/events/backend/node_modules/sails/node_modules/skipper/standalone/Upstream/prototype.fatalIncomingError.js:65:17\r\n        at Function.forEach (/Users/mhdevita/Web/AZ Supras/events/backend/node_modules/sails/node_modules/lodash/dist/lodash.js:3297:15)\r\n        at lodash.ctor.(anonymous function) [as each] (/Users/mhdevita/Web/AZ Supras/events/backend/node_modules/sails/node_modules/lodash/dist/lodash.js:5924:31)\r\n        at Upstream.fatalIncomingError (/Users/mhdevita/Web/AZ Supras/events/backend/node_modules/sails/node_modules/skipper/standalone/Upstream/prototype.fatalIncomingError.js:55:18)\r\n        at Writable.unableToUpload (/Users/mhdevita/Web/AZ Supras/events/backend/node_modules/sails/node_modules/skipper/standalone/Upstream/prototype.upload.js:142:10)\r\n        at Writable.g (events.js:180:16)\r\n        at Writable.emit (events.js:117:20)\r\n        at /Users/mhdevita/Web/AZ Supras/events/backend/node_modules/skipper-s3/index.js:238:22\r\n        at /Users/mhdevita/Web/AZ Supras/events/backend/node_modules/skipper-s3/node_modules/knox-mpu-alt/lib/multipartupload.js:217:42\r\n        at /Users/mhdevita/Web/AZ Supras/events/backend/node_modules/skipper-s3/node_modules/knox-mpu-alt/lib/multipartupload.js:131:18\r\n        at Parser.<anonymous> (/Users/mhdevita/Web/AZ Supras/events/backend/node_modules/skipper-s3/node_modules/knox-mpu-alt/node_modules/xml2js/lib/xml2js.js:255:20)"},"comment":{"url":"https://api.github.com/repos/balderdashy/skipper-s3/issues/comments/125463530","html_url":"https://github.com/balderdashy/skipper-s3/issues/22#issuecomment-125463530","issue_url":"https://api.github.com/repos/balderdashy/skipper-s3/issues/22","id":125463530,"user":{"login":"Dids","id":3455449,"avatar_url":"https://avatars.githubusercontent.com/u/3455449?v=3","gravatar_id":"","url":"https://api.github.com/users/Dids","html_url":"https://github.com/Dids","followers_url":"https://api.github.com/users/Dids/followers","following_url":"https://api.github.com/users/Dids/following{/other_user}","gists_url":"https://api.github.com/users/Dids/gists{/gist_id}","starred_url":"https://api.github.com/users/Dids/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dids/subscriptions","organizations_url":"https://api.github.com/users/Dids/orgs","repos_url":"https://api.github.com/users/Dids/repos","events_url":"https://api.github.com/users/Dids/events{/privacy}","received_events_url":"https://api.github.com/users/Dids/received_events","type":"User","site_admin":false},"created_at":"2015-07-28T06:13:31Z","updated_at":"2015-07-28T06:13:31Z","body":"@plato-cambrian You mean in Skipper? I've tried setting both the region and the endpoint in Skipper, but they didn't seem to effect it, it seems to be hardcoded to only support us-standard buckets. With the AWS SDK though, manually setting the region worked for me, even when using a bucket in the EU."}}