{"action":"created","issue":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/1015","labels_url":"https://api.github.com/repos/balderdashy/waterline/issues/1015/labels{/name}","comments_url":"https://api.github.com/repos/balderdashy/waterline/issues/1015/comments","events_url":"https://api.github.com/repos/balderdashy/waterline/issues/1015/events","html_url":"https://github.com/balderdashy/waterline/issues/1015","id":78633486,"number":1015,"title":"Unhandled rejection Error","user":{"login":"anasyb","id":3670201,"avatar_url":"https://avatars.githubusercontent.com/u/3670201?v=3","gravatar_id":"","url":"https://api.github.com/users/anasyb","html_url":"https://github.com/anasyb","followers_url":"https://api.github.com/users/anasyb/followers","following_url":"https://api.github.com/users/anasyb/following{/other_user}","gists_url":"https://api.github.com/users/anasyb/gists{/gist_id}","starred_url":"https://api.github.com/users/anasyb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anasyb/subscriptions","organizations_url":"https://api.github.com/users/anasyb/orgs","repos_url":"https://api.github.com/users/anasyb/repos","events_url":"https://api.github.com/users/anasyb/events{/privacy}","received_events_url":"https://api.github.com/users/anasyb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-05-20T18:17:47Z","updated_at":"2015-05-21T10:02:45Z","closed_at":null,"body":"Have been getting this error a bunch of times a day since a week or so. Have no idea why or from where is it originating in the async spaghetti. Spent couple of days trying to pinpoint it with no much luck.\r\n\r\nThe only difference I get is that the number of `[object Object]` listed varies, sometimes its one, sometimes its a bunch of them... or in this case its just 2.\r\n\r\nAny ideas/hints guys on what would be the cuz of this and why the number of `[object Object]` is different each time?\r\n\r\n```\r\nUnhandled rejection Error: [object Object],[object Object]\r\n    at Object.ensureErrorObject (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/bluebird/js/main/util.js:226:20)\r\n    at Promise._rejectCallback (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/bluebird/js/main/promise.js:416:22)\r\n    at Object.reject (/usr/local/lib/node_modules/sails/node_modules/waterline/node_modules/bluebird/js/main/promise.js:433:17)\r\n    at /usr/local/lib/node_modules/sails/node_modules/waterline/lib/waterline/model/lib/defaultMethods/save.js:165:18\r\n    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:454:17\r\n    at /usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:444:17\r\n    at Array.forEach (native)\r\n    at _each (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:46:24)\r\n    at Immediate.taskComplete (/usr/local/lib/node_modules/sails/node_modules/async/lib/async.js:443:13)\r\n    at processImmediate [as _immediateCallback] (timers.js:369:17)\r\n```"},"comment":{"url":"https://api.github.com/repos/balderdashy/waterline/issues/comments/104210887","html_url":"https://github.com/balderdashy/waterline/issues/1015#issuecomment-104210887","issue_url":"https://api.github.com/repos/balderdashy/waterline/issues/1015","id":104210887,"user":{"login":"dmarcelino","id":1280446,"avatar_url":"https://avatars.githubusercontent.com/u/1280446?v=3","gravatar_id":"","url":"https://api.github.com/users/dmarcelino","html_url":"https://github.com/dmarcelino","followers_url":"https://api.github.com/users/dmarcelino/followers","following_url":"https://api.github.com/users/dmarcelino/following{/other_user}","gists_url":"https://api.github.com/users/dmarcelino/gists{/gist_id}","starred_url":"https://api.github.com/users/dmarcelino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dmarcelino/subscriptions","organizations_url":"https://api.github.com/users/dmarcelino/orgs","repos_url":"https://api.github.com/users/dmarcelino/repos","events_url":"https://api.github.com/users/dmarcelino/events{/privacy}","received_events_url":"https://api.github.com/users/dmarcelino/received_events","type":"User","site_admin":false},"created_at":"2015-05-21T10:02:45Z","updated_at":"2015-05-21T10:02:45Z","body":"Just to be clear, I don't think the problem is calling `.save()` *twice*, I think the problem is calling `.save()` *twice concurrently on the same object*. I bet `u.save(function(){ /*...*/ u.save(cb); })` would work, didn't test but your earlier `setTimeout()` experience suggests it."}}