Skip to content

Instantly share code, notes, and snippets.

@peaceintheheart
Created August 28, 2019 01:21
Show Gist options
  • Save peaceintheheart/ca707f1d13586bd4f974a5b43cb3a3b6 to your computer and use it in GitHub Desktop.
Save peaceintheheart/ca707f1d13586bd4f974a5b43cb3a3b6 to your computer and use it in GitHub Desktop.
{ SequelizeValidationError: notNull Violation: Post.userId cannot be null
at Promise.all.then (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/sequelize/lib/instance-validator.js:74:15)
at tryCatcher (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:517:31)
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:574:18)
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:699:18)
at Promise._fulfill (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:643:18)
at PromiseArray._resolve (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise_array.js:126:19)
at PromiseArray._promiseFulfilled (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise_array.js:144:14)
at Promise._settlePromise (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:579:26)
at Promise._settlePromise0 (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:619:10)
at Promise._settlePromises (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/promise.js:699:18)
at _drainQueueStep (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:138:12)
at _drainQueue (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:131:9)
at Async._drainQueues (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:147:5)
at Immediate.Async.drainQueues [as _onImmediate] (/Users/nickchang/work/thinkful/tc/donovanky/bloccit/node_modules/bluebird/js/release/async.js:17:14)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
name: 'SequelizeValidationError',
errors:
[ ValidationErrorItem {
message: 'Post.userId cannot be null',
type: 'notNull Violation',
path: 'userId',
value: null,
origin: 'CORE',
instance: [Post],
validatorKey: 'is_null',
validatorName: null,
validatorArgs: [] } ] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment