Advertisement
Guest User

Untitled

a guest
Mar 17th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.54 KB | None | 0 0
  1. ```
  2. error
  3. { SequelizeDatabaseError: null value in column "password" violates not-null constraint
  4. at Query.formatError (/Users/Raissa/bloc/blocipedia/node_modules/sequelize/lib/dialects/postgres/query.js:363:16)
  5. at query.catch.err (/Users/Raissa/bloc/blocipedia/node_modules/sequelize/lib/dialects/postgres/query.js:86:18)
  6. at tryCatcher (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/util.js:16:23)
  7. at Promise._settlePromiseFromHandler (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:512:31)
  8. at Promise._settlePromise (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:569:18)
  9. at Promise._settlePromise0 (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:614:10)
  10. at Promise._settlePromises (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/promise.js:690:18)
  11. at _drainQueueStep (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/async.js:138:12)
  12. at _drainQueue (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/async.js:131:9)
  13. at Async._drainQueues (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/async.js:147:5)
  14. at Immediate.Async.drainQueues [as _onImmediate] (/Users/Raissa/bloc/blocipedia/node_modules/bluebird/js/release/async.js:17:14)
  15. at runCallback (timers.js:705:18)
  16. at tryOnImmediate (timers.js:676:5)
  17. at processImmediate (timers.js:658:5)
  18. name: 'SequelizeDatabaseError',
  19. parent:
  20. { error: null value in column "password" violates not-null constraint
  21. at Connection.parseE (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:545:11)
  22. at Connection.parseMessage (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:370:19)
  23. at Socket.<anonymous> (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:113:22)
  24. at Socket.emit (events.js:182:13)
  25. at addChunk (_stream_readable.js:283:12)
  26. at readableAddChunk (_stream_readable.js:264:11)
  27. at Socket.Readable.push (_stream_readable.js:219:10)
  28. at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
  29. name: 'error',
  30. length: 270,
  31. severity: 'ERROR',
  32. code: '23502',
  33. detail:
  34. '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).',
  35. hint: undefined,
  36. position: undefined,
  37. internalPosition: undefined,
  38. internalQuery: undefined,
  39. where: undefined,
  40. schema: 'public',
  41. table: 'Users',
  42. column: 'password',
  43. dataType: undefined,
  44. constraint: undefined,
  45. file: 'execMain.c',
  46. line: '2008',
  47. routine: 'ExecConstraints',
  48. sql:
  49. '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 *;' },
  50. original:
  51. { error: null value in column "password" violates not-null constraint
  52. at Connection.parseE (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:545:11)
  53. at Connection.parseMessage (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:370:19)
  54. at Socket.<anonymous> (/Users/Raissa/bloc/blocipedia/node_modules/pg/lib/connection.js:113:22)
  55. at Socket.emit (events.js:182:13)
  56. at addChunk (_stream_readable.js:283:12)
  57. at readableAddChunk (_stream_readable.js:264:11)
  58. at Socket.Readable.push (_stream_readable.js:219:10)
  59. at TCP.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)
  60. name: 'error',
  61. length: 270,
  62. severity: 'ERROR',
  63. code: '23502',
  64. detail:
  65. '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).',
  66. hint: undefined,
  67. position: undefined,
  68. internalPosition: undefined,
  69. internalQuery: undefined,
  70. where: undefined,
  71. schema: 'public',
  72. table: 'Users',
  73. column: 'password',
  74. dataType: undefined,
  75. constraint: undefined,
  76. file: 'execMain.c',
  77. line: '2008',
  78. routine: 'ExecConstraints',
  79. sql:
  80. '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 *;' },
  81. sql:
  82. '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