Browse Source

数据表模型

release_0.0.1
巴林闲侠 3 years ago
parent
commit
3f55d3cd8a
  1. 1
      api/app/lib/index.js
  2. 2
      api/app/lib/models/user_token.js
  3. 234
      api/log/development.log

1
api/app/lib/index.js

@ -23,6 +23,7 @@ module.exports.entry = function (app, router, opts) {
module.exports.models = function (dc) { // dc = { orm: Sequelize对象, ORM: Sequelize, models: {} } module.exports.models = function (dc) { // dc = { orm: Sequelize对象, ORM: Sequelize, models: {} }
fs.readdirSync(path.join(__dirname, '/models')).forEach((filename) => { fs.readdirSync(path.join(__dirname, '/models')).forEach((filename) => {
console.log(filename);
require(`./models/${filename}`)(dc) require(`./models/${filename}`)(dc)
}); });

2
api/app/lib/models/user_token.js

@ -10,7 +10,7 @@ module.exports = dc => {
allowNull: false, allowNull: false,
defaultValue: null, defaultValue: null,
comment: null, comment: null,
primaryKey: false, primaryKey: true,
field: "token", field: "token",
autoIncrement: false autoIncrement: false
}, },

234
api/log/development.log

@ -6717,3 +6717,237 @@
2022-07-20 20:45:25.022 - debug: [FS-LOGGER] Init. 2022-07-20 20:45:25.022 - debug: [FS-LOGGER] Init.
2022-07-20 20:45:25.106 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2022-07-20 20:45:25.106 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:45:25.106 - info: [FS-AUTH] Inject auth and api mv into router. 2022-07-20 20:45:25.106 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-20 20:45:56.444 - debug: [FS-LOGGER] Init.
2022-07-20 20:45:56.515 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:45:56.515 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-20 20:47:15.777 - error: path: /login, error: SequelizeDatabaseError: 关系 "user_token" 的 "id" 字段不存在
2022-07-20 20:47:17.648 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:19.778 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:21.058 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:22.122 - error: [FS-ERRHD]
{
message: 'read ECONNRESET',
stack: 'SequelizeConnectionError: read ECONNRESET\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:154:24\n' +
' at Connection.connectingErrorHandler (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\client.js:194:14)\n' +
' at Connection.emit (events.js:314:20)\n' +
' at Socket.reportStreamError (c:\\_WorkCode\\四好公路\\api\\node_modules\\pg\\lib\\connection.js:73:10)\n' +
' at Socket.emit (events.js:314:20)\n' +
' at emitErrorNT (internal/streams/destroy.js:92:8)\n' +
' at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)\n' +
' at processTicksAndRejections (internal/process/task_queues.js:84:21)\n' +
'From previous event:\n' +
' at ConnectionManager.connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\postgres\\connection-manager.js:107:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:50\n' +
'From previous event:\n' +
' at ConnectionManager._connect (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:338:8)\n' +
' at Object.create (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:101:28)\n' +
' at Pool._createResource (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:308:42)\n' +
' at Pool._ensureMinimum (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:338:12)\n' +
' at Pool.start (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:412:10)\n' +
' at Pool.acquire (c:\\_WorkCode\\四好公路\\api\\node_modules\\generic-pool\\lib\\Pool.js:429:12)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:292:24\n' +
' at processImmediate (internal/timers.js:461:21)\n' +
' at process.callbackTrampoline (internal/async_hooks.js:126:14)\n' +
'From previous event:\n' +
' at ConnectionManager.getConnection (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\dialects\\abstract\\connection-manager.js:291:20)\n' +
' at Transaction.prepareEnvironment (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\transaction.js:125:60)\n' +
' at Sequelize.transaction (c:\\_WorkCode\\四好公路\\api\\node_modules\\sequelize\\lib\\sequelize.js:996:43)\n' +
' at login (c:\\_WorkCode\\四好公路\\api\\app\\lib\\controllers\\auth\\index.js:8:45)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\business-rest.js:45:16\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at next (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:45:18)\n' +
' at auth (c:\\_WorkCode\\四好公路\\api\\app\\lib\\middlewares\\authenticator.js:145:19)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:44:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-compose\\index.js:36:12\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\koa-66\\index.js:209:56\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-dc\\lib\\dc.js:35:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:54:5\n' +
' at new Promise (<anonymous>)\n' +
' at co (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:50:10)\n' +
' at createPromise (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:30:15)\n' +
' at dispatch (c:\\_WorkCode\\四好公路\\api\\node_modules\\koa\\node_modules\\koa-compose\\index.js:42:32)\n' +
' at c:\\_WorkCode\\四好公路\\api\\node_modules\\fs-logger\\lib\\logger.js:48:15\n' +
' at Generator.next (<anonymous>)\n' +
' at onFulfilled (c:\\_WorkCode\\四好公路\\api\\node_modules\\co\\index.js:65:19)',
name: 'SequelizeConnectionError',
parent: { errno: 'ECONNRESET', code: 'ECONNRESET', syscall: 'read' },
original: { '$ref': '$["parent"]' },
__stackCleaned__: true
}
2022-07-20 20:47:28.269 - debug: [FS-LOGGER] Init.
2022-07-20 20:47:28.345 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:47:28.345 - info: [FS-AUTH] Inject auth and api mv into router.
2022-07-20 20:48:16.746 - debug: [FS-LOGGER] Init.
2022-07-20 20:48:16.819 - info: [FS-ATTACHMENT] Inject attachment mw into router.
2022-07-20 20:48:16.819 - info: [FS-AUTH] Inject auth and api mv into router.

Loading…
Cancel
Save