Giter VIP home page Giter VIP logo

dash-http-docset's People

Contributors

yashiro1899 avatar

Watchers

 avatar

dash-http-docset's Issues

Error when inserting in Sqlite

Hi !

When I run dash.sh, I get the following error from the underlying node process

Mirror launched on Thu, 07 Oct 2021 13:47:44 by HTTrack Website Copier/3.49-2 [XR&CO'2014]
mirroring https://developer.mozilla.org/en-US/docs/Web/HTTP -* +*.css +*css.php +*.ico +*/fonts/* +*.png +*.jpg +*.gif +*.jpeg +*.js +developer.mozilla.org/en-US/docs/Web/HTTP/* with the wizard help..
Done.83: https://developer.mozilla.org/en-US/docs/Web/HTTP/Proxy_servers_and_tunneling/Proxy_Auto-Configuration_PAC_file/contributors.txt (0 bytes) - OK
Thanks for using HTTrack!
/home/leonard/.local/share/github.com
Executing (default): CREATE TABLE IF NOT EXISTS `searchIndex` (`id` INTEGER PRIMARY KEY AUTOINCREMENT, `name` VARCHAR(255), `type` VARCHAR(255), `path` VARCHAR(255), UNIQUE (`name`, `type`, `path`));
Executing (default): PRAGMA INDEX_LIST(`searchIndex`)
Executing (default): PRAGMA INDEX_INFO(`sqlite_autoindex_searchIndex_1`)
Executing (default): INSERT INTO `searchIndex` (`id`,`name`,`type`,`path`) VALUES (NULL,$1,$2,$3);
node:internal/process/promises:246
          triggerUncaughtException(err, true /* fromPromise */);
          ^

UniqueConstraintError [SequelizeUniqueConstraintError]: Validation error
    at Query.formatError (/home/leonard/.local/share/github.com/node_modules/sequelize/lib/dialects/sqlite/query.js:416:16)
    at Query._handleQueryResponse (/home/leonard/.local/share/github.com/node_modules/sequelize/lib/dialects/sqlite/query.js:73:18)
    at Statement.afterExecute (/home/leonard/.local/share/github.com/node_modules/sequelize/lib/dialects/sqlite/query.js:250:31)
    at Statement.replacement (/home/leonard/.local/share/github.com/node_modules/sqlite3/lib/trace.js:19:31) {
  errors: [
    ValidationErrorItem {
      message: 'name must be unique',
      type: 'unique violation',
      path: 'name',
      value: 'Identifying resources on the Web',
      origin: 'DB',
      instance: searchIndex {
        dataValues: {
          id: null,
          name: 'Identifying resources on the Web',
          type: 'Guides',
          path: 'developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web.html'
        },
        _previousDataValues: { name: undefined, type: undefined, path: undefined },
        _changed: { name: true, type: true, path: true },
        _modelOptions: {
          timestamps: false,
          validate: {},
          freezeTableName: true,
          underscored: false,
          paranoid: false,
          rejectOnEmpty: false,
          whereCollection: null,
          schema: null,
          schemaDelimiter: '',
          defaultScope: {},
          scopes: {},
          indexes: [],
          name: { plural: 'searchIndices', singular: 'searchIndex' },
          omitNull: false,
          sequelize: Sequelize {
            options: [Object],
            config: [Object],
            dialect: [SqliteDialect],
            queryInterface: [QueryInterface],
            models: [Object],
            modelManager: [ModelManager],
            connectionManager: [ConnectionManager],
            importCache: {}
          },
          hooks: {}
        },
        _options: {
          isNewRecord: true,
          _schema: null,
          _schemaDelimiter: '',
          attributes: undefined,
          include: undefined,
          raw: undefined,
          silent: undefined
        },
        isNewRecord: true
      },
      validatorKey: 'not_unique',
      validatorName: null,
      validatorArgs: []
    },
    ValidationErrorItem {
      message: 'type must be unique',
      type: 'unique violation',
      path: 'type',
      value: 'Guides',
      origin: 'DB',
      instance: searchIndex {
        dataValues: {
          id: null,
          name: 'Identifying resources on the Web',
          type: 'Guides',
          path: 'developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web.html'
        },
        _previousDataValues: { name: undefined, type: undefined, path: undefined },
        _changed: { name: true, type: true, path: true },
        _modelOptions: {
          timestamps: false,
          validate: {},
          freezeTableName: true,
          underscored: false,
          paranoid: false,
          rejectOnEmpty: false,
          whereCollection: null,
          schema: null,
          schemaDelimiter: '',
          defaultScope: {},
          scopes: {},
          indexes: [],
          name: { plural: 'searchIndices', singular: 'searchIndex' },
          omitNull: false,
          sequelize: Sequelize {
            options: [Object],
            config: [Object],
            dialect: [SqliteDialect],
            queryInterface: [QueryInterface],
            models: [Object],
            modelManager: [ModelManager],
            connectionManager: [ConnectionManager],
            importCache: {}
          },
          hooks: {}
        },
        _options: {
          isNewRecord: true,
          _schema: null,
          _schemaDelimiter: '',
          attributes: undefined,
          include: undefined,
          raw: undefined,
          silent: undefined
        },
        isNewRecord: true
      },
      validatorKey: 'not_unique',
      validatorName: null,
      validatorArgs: []
    },
    ValidationErrorItem {
      message: 'path must be unique',
      type: 'unique violation',
      path: 'path',
      value: 'developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web.html',
      origin: 'DB',
      instance: searchIndex {
        dataValues: {
          id: null,
          name: 'Identifying resources on the Web',
          type: 'Guides',
          path: 'developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Identifying_resources_on_the_Web.html'
        },
        _previousDataValues: { name: undefined, type: undefined, path: undefined },
        _changed: { name: true, type: true, path: true },
        _modelOptions: {
          timestamps: false,
          validate: {},
          freezeTableName: true,
          underscored: false,
          paranoid: false,
          rejectOnEmpty: false,
          whereCollection: null,
          schema: null,
          schemaDelimiter: '',
          defaultScope: {},
          scopes: {},
          indexes: [],
          name: { plural: 'searchIndices', singular: 'searchIndex' },
          omitNull: false,
          sequelize: Sequelize {
            options: [Object],
            config: [Object],
            dialect: [SqliteDialect],
            queryInterface: [QueryInterface],
            models: [Object],
            modelManager: [ModelManager],
            connectionManager: [ConnectionManager],
            importCache: {}
          },
          hooks: {}
        },
        _options: {
          isNewRecord: true,
          _schema: null,
          _schemaDelimiter: '',
          attributes: undefined,
          include: undefined,
          raw: undefined,
          silent: undefined
        },
        isNewRecord: true
      },
      validatorKey: 'not_unique',
      validatorName: null,
      validatorArgs: []
    }
  ],
  fields: [ 'name', 'type', 'path' ],
  parent: [Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: searchIndex.name, searchIndex.type, searchIndex.path] {
    errno: 19,
    code: 'SQLITE_CONSTRAINT',
    sql: 'INSERT INTO `searchIndex` (`id`,`name`,`type`,`path`) VALUES (NULL,$1,$2,$3);'
  },
  original: [Error: SQLITE_CONSTRAINT: UNIQUE constraint failed: searchIndex.name, searchIndex.type, searchIndex.path] {
    errno: 19,
    code: 'SQLITE_CONSTRAINT',
    sql: 'INSERT INTO `searchIndex` (`id`,`name`,`type`,`path`) VALUES (NULL,$1,$2,$3);'
  },
  sql: 'INSERT INTO `searchIndex` (`id`,`name`,`type`,`path`) VALUES (NULL,$1,$2,$3);'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.