Ошибка при попытке использовать проверку подлинности Windows в sequelize с использованием sequelize-msnodesqlv8 - PullRequest
0 голосов
/ 15 мая 2019

Я пытаюсь использовать проверку подлинности Windows с использованием пакета https://www.npmjs.com/package/sequelize-msnodesqlv8, но получаю SequelizeConnectionError.

Это моя конфигурация.

{
    dialect: "mssql",
    dialectModulePath: "sequelize-msnodesqlv8",
    dialectOptions: {
      driver: "SQL Server Native Client 11.0",
      trustedConnection: true
    },
    host: process.env.DEV_DB_HOSTNAME,
    database: process.env.DEV_DB_NAME
}

Ошибка, которую я получаюполучение:

(node:27588) UnhandledPromiseRejectionWarning: SequelizeConnectionError
    at Connection.connection.on.err (C:\webportaltesttool\backend\node_modules\sequelize\lib\dialects\mssql\connection-manager.js:85:18)
    at Connection.emit (events.js:182:13)
    at mssql.open (C:\webportaltesttool\backend\node_modules\sequelize-msnodesqlv8\lib\connection.js:107:9)
    at Immediate._onImmediate (C:\webportaltesttool\backend\node_modules\msnodesqlv8\lib\connection.js:360:15)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
(node:27588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not hand
led with .catch(). (rejection id: 1)
(node:27588) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:27588) UnhandledPromiseRejectionWarning: SequelizeConnectionError
    at Connection.connection.on.err (C:\webportaltesttool\backend\node_modules\sequelize\lib\dialects\mssql\connection-manager.js:85:18)
    at Connection.emit (events.js:182:13)
    at mssql.open (C:\webportaltesttool\backend\node_modules\sequelize-msnodesqlv8\lib\connection.js:107:9)
    at Immediate._onImmediate (C:\webportaltesttool\backend\node_modules\msnodesqlv8\lib\connection.js:360:15)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)
(node:27588) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not hand
led with .catch(). (rejection id: 2)
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...