收藏
回答

云托管vsconde问题?

vscode启动云托管报错

start container failed: Error: container crashed when starting. please check output logs. 报错文本是这个

回答关注问题邀请回答
收藏

1 个回答

  • 4869
    4869
    01-04

     wxcloudrun-express@1.0.0 start /app

    > node index.js


    (node:17) UnhandledPromiseRejectionWarning: SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:3306

        at ConnectionManager.connect (/app/node_modules/sequelize/lib/dialects/mysql/connection-manager.js:92:17)

        at processTicksAndRejections (internal/process/task_queues.js:95:5)

        at async ConnectionManager._connect (/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:222:24)

        at async /app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:174:32

        at async ConnectionManager.getConnection (/app/node_modules/sequelize/lib/dialects/abstract/connection-manager.js:197:7)

        at async /app/node_modules/sequelize/lib/sequelize.js:305:26

        at async MySQLQueryInterface.tableExists (/app/node_modules/sequelize/lib/dialects/abstract/query-interface.js:102:17)

        at async Function.sync (/app/node_modules/sequelize/lib/model.js:939:21)

        at async init (/app/db.js:35:3)

        at async bootstrap (/app/index.js:68:3)

    (Use `node --trace-warnings ...` to show where the warning was created)

    (node:17) 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 handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)

    (node:17) [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.

    01-04
    有用
    回复
登录 后发表内容
问题标签