SHARE
TWEET

Untitled

a guest Sep 22nd, 2019 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Unhandled Rejection at: Promise {
  2.   <rejected> { SequelizeUniqueConstraintError: Validation error
  3.       at Query.formatError (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sequelize\lib\dialects\sqlite\query.js:413:16)
  4.       at Query._handleQueryResponse (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sequelize\lib\dialects\sqlite\query.js:73:18)
  5.       at Statement.afterExecute (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sequelize\lib\dialects\sqlite\query.js:247:31)
  6.       at Statement.replacement (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sqlite3\lib\trace.js:19:31)
  7.     name: 'SequelizeUniqueConstraintError',
  8.     errors: [ [ValidationErrorItem] ],
  9.     fields: [ 'id' ],
  10.     parent:
  11.      { Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: members.id
  12.        errno: 19,
  13.        code: 'SQLITE_CONSTRAINT',
  14.        sql:
  15.         'INSERT INTO `members` (`id`,`name`,`balance`,`level`,`xp`,`messages`) VALUES ($1,$2,$3,$4,$5,$6);' },
  16.     original:
  17.      { Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: members.id
  18.        errno: 19,
  19.        code: 'SQLITE_CONSTRAINT',
  20.        sql:
  21.         'INSERT INTO `members` (`id`,`name`,`balance`,`level`,`xp`,`messages`) VALUES ($1,$2,$3,$4,$5,$6);' },
  22.     sql:
  23.      'INSERT INTO `members` (`id`,`name`,`balance`,`level`,`xp`,`messages`) VALUES ($1,$2,$3,$4,$5,$6);' } } reason: { SequelizeUniqueConstraintError: Validation error
  24.     at Query.formatError (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sequelize\lib\dialects\sqlite\query.js:413:16)
  25.     at Query._handleQueryResponse (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sequelize\lib\dialects\sqlite\query.js:73:18)
  26.     at Statement.afterExecute (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sequelize\lib\dialects\sqlite\query.js:247:31)
  27.     at Statement.replacement (C:\Users\nicho\Documents\GitHub\Minkinator-Bot\node_modules\sqlite3\lib\trace.js:19:31)
  28.   name: 'SequelizeUniqueConstraintError',
  29.   errors:
  30.    [ ValidationErrorItem {
  31.        message: 'id must be unique',
  32.        type: 'unique violation',
  33.        path: 'id',
  34.        value: '546707505745494037',
  35.        origin: 'DB',
  36.        instance: [members],
  37.        validatorKey: 'not_unique',
  38.        validatorName: null,
  39.        validatorArgs: [] } ],
  40.   fields: [ 'id' ],
  41.   parent:
  42.    { Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: members.id
  43.      errno: 19,
  44.      code: 'SQLITE_CONSTRAINT',
  45.      sql:
  46.       'INSERT INTO `members` (`id`,`name`,`balance`,`level`,`xp`,`messages`) VALUES ($1,$2,$3,$4,$5,$6);' },
  47.   original:
  48.    { Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: members.id
  49.      errno: 19,
  50.      code: 'SQLITE_CONSTRAINT',
  51.      sql:
  52.       'INSERT INTO `members` (`id`,`name`,`balance`,`level`,`xp`,`messages`) VALUES ($1,$2,$3,$4,$5,$6);' },
  53.   sql:
  54.    'INSERT INTO `members` (`id`,`name`,`balance`,`level`,`xp`,`messages`) VALUES ($1,$2,$3,$4,$5,$6);' }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top