Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```
- error
- { SequelizeDatabaseError: null value in column "password" violates not-null constraint
- at Query.formatError (/Users/Raissa/bloc/blocipedia/node_modules/sequelize/lib/dialects/postgres/query.js:363:16)
- at query.catch.err (/Users/Raissa/bloc/blocipedia/node_modules/sequelize/lib/dialects/postgres/query.js:86:18)
- at tryCatcher (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/util.js:16:23)
- at Promise._settlePromiseFromHandler (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:512:31)
- at Promise._settlePromise (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:569:18)
- at Promise._settlePromise0 (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:614:10)
- at Promise._settlePromises (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:690:18)
- at _drainQueueStep (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/async.js:138:12)
- at _drainQueue (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/async.js:131:9)
- at Async._drainQueues (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/async.js:147:5)
- at Immediate.Async.drainQueues [as _onImmediate] (/Users/Raissa/bloc/blocipedia/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: 'SequelizeDatabaseError',
- parent:
- { error: null value in column "password" violates not-null constraint
- at Connection.parseE (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:545:11)
- at Connection.parseMessage (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:370:19)
- at Socket.<anonymous> (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:113:22)
- at Socket.emit (events.js:182:13)
- at addChunk (_stream_readable.js:283:12)
- at readableAddChunk (_stream_readable.js:264:11)
- at Socket.Readable.push (_stream_readable.js:219:10)
- at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
- name: 'error',
- length: 270,
- severity: 'ERROR',
- code: '23502',
- detail:
- 'Failing row contains (6, raibola, harry_anne10@yahoo.com, null, 2019-03-12 14:46:16.979+00, 2019-03-12 14:46:16.979+00).',
- hint: undefined,
- position: undefined,
- internalPosition: undefined,
- internalQuery: undefined,
- where: undefined,
- schema: 'public',
- table: 'Users',
- column: 'password',
- dataType: undefined,
- constraint: undefined,
- file: 'execMain.c',
- line: '2008',
- routine: 'ExecConstraints',
- sql:
- 'INSERT INTO "Users" ("id","username","email","createdAt","updatedAt") VALUES (DEFAULT,\'raibola\',\'harry_anne10@yahoo.com\',\'2019-03-12 14:46:16.979 +00:00\',\'2019-03-12 14:46:16.979 +00:00\') RETURNING *;' },
- original:
- { error: null value in column "password" violates not-null constraint
- at Connection.parseE (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:545:11)
- at Connection.parseMessage (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:370:19)
- at Socket.<anonymous> (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:113:22)
- at Socket.emit (events.js:182:13)
- at addChunk (_stream_readable.js:283:12)
- at readableAddChunk (_stream_readable.js:264:11)
- at Socket.Readable.push (_stream_readable.js:219:10)
- at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
- name: 'error',
- length: 270,
- severity: 'ERROR',
- code: '23502',
- detail:
- 'Failing row contains (6, raibola, harry_anne10@yahoo.com, null, 2019-03-12 14:46:16.979+00, 2019-03-12 14:46:16.979+00).',
- hint: undefined,
- position: undefined,
- internalPosition: undefined,
- internalQuery: undefined,
- where: undefined,
- schema: 'public',
- table: 'Users',
- column: 'password',
- dataType: undefined,
- constraint: undefined,
- file: 'execMain.c',
- line: '2008',
- routine: 'ExecConstraints',
- sql:
- 'INSERT INTO "Users" ("id","username","email","createdAt","updatedAt") VALUES (DEFAULT,\'raibola\',\'harry_anne10@yahoo.com\',\'2019-03-12 14:46:16.979 +00:00\',\'2019-03-12 14:46:16.979 +00:00\') RETURNING *;' },
- sql:
- 'INSERT INTO "Users" ("id","username","email","createdAt","updatedAt") VALUES (DEFAULT,\'raibola\',\'harry_anne10@yahoo.com\',\'2019-03-12 14:46:16.979 +00:00\',\'2019-03-12 14:46:16.979 +00:00\') RETURNING *;' }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement