{"action":"created","issue":{"url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/84","repository_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload","labels_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/84/comments","events_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/84/events","html_url":"https://github.com/sgress454/sails-hook-autoreload/issues/84","id":273720713,"number":84,"title":"Autoreload failed. Got Error: Callback was already called","user":{"login":"NguyenAnX","id":18256536,"avatar_url":"https://avatars2.githubusercontent.com/u/18256536?v=4","gravatar_id":"","url":"https://api.github.com/users/NguyenAnX","html_url":"https://github.com/NguyenAnX","followers_url":"https://api.github.com/users/NguyenAnX/followers","following_url":"https://api.github.com/users/NguyenAnX/following{/other_user}","gists_url":"https://api.github.com/users/NguyenAnX/gists{/gist_id}","starred_url":"https://api.github.com/users/NguyenAnX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NguyenAnX/subscriptions","organizations_url":"https://api.github.com/users/NguyenAnX/orgs","repos_url":"https://api.github.com/users/NguyenAnX/repos","events_url":"https://api.github.com/users/NguyenAnX/events{/privacy}","received_events_url":"https://api.github.com/users/NguyenAnX/received_events","type":"User","site_admin":false},"labels":[{"id":685051310,"url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/labels/reproduce%20repo%20needed","name":"reproduce repo needed","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2017-11-14T09:27:07Z","updated_at":"2018-05-30T12:04:29Z","closed_at":null,"author_association":"NONE","body":"Every time Autoreload happens,  Sails auto-migration will run but I got following error:\r\n\r\n```\r\ninfo: ·• Auto-migrating...  (alter)\r\ninfo:    Hold tight, this could take a moment.\r\n/Users/macOS/canvas/node_modules/parley/lib/private/Deferred.js:731\r\n      throw e.raw;\r\n      ^\r\n\r\nError: Callback was already called.\r\n    at /Users/macOS/canvas/node_modules/async/dist/async.js:844:36\r\n    at /Users/macOS/canvas/node_modules/sails-hook-orm/lib/initialize.js:437:27\r\n    at /Users/macOS/canvas/node_modules/sails-hook-orm/lib/build-ontology-and-run-auto-migrations.js:133:25\r\n    at afterMigrate (/Users/macOS/canvas/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:199:14)\r\n    at /Users/macOS/canvas/node_modules/async/dist/async.js:952:25\r\n    at iteratorCallback (/Users/macOS/canvas/node_modules/async/dist/async.js:995:17)\r\n    at /Users/macOS/canvas/node_modules/async/dist/async.js:847:20\r\n    at findCallback (/Users/macOS/canvas/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:115:18)\r\n    at _tryToRunCb (/Users/macOS/canvas/node_modules/parley/lib/private/Deferred.js:518:20)\r\n    at /Users/macOS/canvas/node_modules/parley/lib/private/Deferred.js:694:16\r\n    at Deferred._.extend._WLModel [as _handleExec] (/Users/macOS/canvas/node_modules/waterline/lib/waterline/methods/find.js:214:20)\r\n    at Deferred.exec (/Users/macOS/canvas/node_modules/parley/lib/private/Deferred.js:644:10)\r\n    at simultaneouslyMigrateEachModel (/Users/macOS/canvas/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:94:6)\r\n    at /Users/macOS/canvas/node_modules/async/dist/async.js:3047:20\r\n    at eachOfArrayLike (/Users/macOS/canvas/node_modules/async/dist/async.js:1002:13)\r\n    at eachOf (/Users/macOS/canvas/node_modules/async/dist/async.js:1052:9)\r\n    at Object.eachLimit (/Users/macOS/canvas/node_modules/async/dist/async.js:3111:7)\r\n    at runAlterStrategy (/Users/macOS/canvas/node_modules/waterline-utils/lib/auto-migrations/private/run-alter-strategy/index.js:39:9)\r\n    at Object.runAutoMigrations [as autoMigrations] (/Users/macOS/canvas/node_modules/waterline-utils/lib/auto-migrations/index.js:45:19)\r\n    at _afterInitializingWaterline (/Users/macOS/canvas/node_modules/sails-hook-orm/lib/build-ontology-and-run-auto-migrations.js:132:20)\r\n    at /Users/macOS/canvas/node_modules/waterline/lib/waterline.js:722:14\r\n    at /Users/macOS/canvas/node_modules/async/dist/async.js:952:25\r\n    at iteratorCallback (/Users/macOS/canvas/node_modules/async/dist/async.js:997:17)\r\n    at /Users/macOS/canvas/node_modules/async/dist/async.js:847:20\r\n    at /Users/macOS/canvas/node_modules/async/dist/async.js:952:25\r\n    at eachOfArrayLike (/Users/macOS/canvas/node_modules/async/dist/async.js:990:13)\r\n    at eachOf (/Users/macOS/canvas/node_modules/async/dist/async.js:1052:9)\r\n    at Object.eachLimit (/Users/macOS/canvas/node_modules/async/dist/async.js:3111:7)\r\n```"},"comment":{"url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/comments/393135923","html_url":"https://github.com/sgress454/sails-hook-autoreload/issues/84#issuecomment-393135923","issue_url":"https://api.github.com/repos/sgress454/sails-hook-autoreload/issues/84","id":393135923,"user":{"login":"Wisperus","id":22996258,"avatar_url":"https://avatars3.githubusercontent.com/u/22996258?v=4","gravatar_id":"","url":"https://api.github.com/users/Wisperus","html_url":"https://github.com/Wisperus","followers_url":"https://api.github.com/users/Wisperus/followers","following_url":"https://api.github.com/users/Wisperus/following{/other_user}","gists_url":"https://api.github.com/users/Wisperus/gists{/gist_id}","starred_url":"https://api.github.com/users/Wisperus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Wisperus/subscriptions","organizations_url":"https://api.github.com/users/Wisperus/orgs","repos_url":"https://api.github.com/users/Wisperus/repos","events_url":"https://api.github.com/users/Wisperus/events{/privacy}","received_events_url":"https://api.github.com/users/Wisperus/received_events","type":"User","site_admin":false},"created_at":"2018-05-30T12:04:29Z","updated_at":"2018-05-30T12:04:29Z","author_association":"NONE","body":"In './config/models.js' file I add ''\r\n\r\n`module.exports.models = { archiveModelIdentity: false }` \r\n[https://sailsjs.com/documentation/reference/configuration/sails-config-models](url)\r\nIt work for me!"}}
{"actor":{"display_login":"Wisperus"}}