You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doesn't get to exec callback function with errors:
Error (E_VALIDATION) :: 0 attributes are invalid
at new WLError (/Users/kostik/Projects/Home-Genie-Sails/node_modules/sails-hook-validation/node_modules/waterline/lib/waterline/error/WLError.js:26:15)
at Object.module.exports.patch (/Users/kostik/Projects/Home-Genie-Sails/node_modules/sails-hook-validation/lib/WLValidationError.js:8:13)
at /Users/kostik/Projects/Home-Genie-Sails/node_modules/sails-hook-validation/lib/create.js:66:48
at /Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/lib/waterline/query/dql/create.js:223:14
at wrapper (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/node_modules/lodash/index.js:3592:19)
at applyInOriginalCtx (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/lib/waterline/utils/normalize.js:417:80)
at module.exports.callback.wrappedCallback (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/lib/waterline/utils/normalize.js:331:16)
at module.exports.callback.callback.error (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:42:31)
at module.exports._switch (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/node_modules/switchback/lib/factory.js:56:28)
at afterwards (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/lib/waterline/adapter/dql.js:87:16)
at wrapper (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/node_modules/lodash/index.js:3592:19)
at applyInOriginalCtx (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/lib/waterline/utils/normalize.js:417:80)
at module.exports.callback.wrappedCallback (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/lib/waterline/utils/normalize.js:331:16)
at module.exports.callback.callback.error (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/node_modules/switchback/lib/normalize.js:42:31)
at module.exports._switch (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline/node_modules/switchback/lib/factory.js:56:28)
at AdapterError.wrap (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/dist/error.js:33:45)
at tryCatcher (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/node_modules/knex/node_modules/bluebird/js/main/util.js:26:23)
at Promise.module.exports.Promise._settlePromiseFromHandler (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/node_modules/knex/node_modules/bluebird/js/main/promise.js:507:31)
at Promise.module.exports.Promise._settlePromiseAt (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/node_modules/knex/node_modules/bluebird/js/main/promise.js:581:18)
at Promise.module.exports.Promise._settlePromises (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/node_modules/knex/node_modules/bluebird/js/main/promise.js:697:14)
at Async._drainQueue (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/node_modules/knex/node_modules/bluebird/js/main/async.js:123:16)
at Async._drainQueues (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/node_modules/knex/node_modules/bluebird/js/main/async.js:133:10)
at Immediate.__dirname.Async.drainQueues [as _onImmediate] (/Users/kostik/Projects/Home-Genie-Sails/node_modules/waterline-sqlite3/node_modules/knex/node_modules/bluebird/js/main/async.js:15:14)
at processImmediate [as _immediateCallback] (timers.js:383:17)
Details: Invalid attributes sent to undefined:
The text was updated successfully, but these errors were encountered:
Hi! I faced a problem with unique constraint check.
In User model:
Then in controller action (passing a login, that allready exists in table in db):
Doesn't get to exec callback function with errors:
The text was updated successfully, but these errors were encountered: