我已经使用 Heroku 托管我的 Discord 机器人一段时间了,没有任何问题。我将它与 Github 连接起来,以便在每次提交后自动部署。但是,今天我对机器人的一个文件进行了更改,这是我之前所做的正常更改,现在提交后,机器人在 Discord 上处于脱机状态。我有免费的 Heroku 计划,我已经检查过了,这个月我还有 100 小时的测功时间。我对这一切都很陌生,而且我不是很有经验。此外,测功机应用程序的唤醒链接不会唤醒测功机或使其重新联机。任何输入表示赞赏。谢谢。并且记录在案:机器人没有关闭,因为它没有在免费计划中超时,我确定了这一点。它也设置为工人,而不是网络,所以这不应该是问题。最后,我还没有用完时间。
日志:
2020-10-22T16:58:50.083329+00:00 app[web.1]: db error Error: Connection lost: The server closed the connection.
2020-10-22T16:58:50.083337+00:00 app[web.1]: at Protocol.end (/app/node_modules/mysql/lib/protocol/Protocol.js:112:13)
2020-10-22T16:58:50.083338+00:00 app[web.1]: at Socket.<anonymous> (/app/node_modules/mysql/lib/Connection.js:94:28)
2020-10-22T16:58:50.083338+00:00 app[web.1]: at Socket.<anonymous> (/app/node_modules/mysql/lib/Connection.js:526:10)
2020-10-22T16:58:50.083339+00:00 app[web.1]: at Socket.emit (events.js:326:22)
2020-10-22T16:58:50.083340+00:00 app[web.1]: at endReadableNT (_stream_readable.js:1223:12)
2020-10-22T16:58:50.083341+00:00 app[web.1]: at processTicksAndRejections (internal/process/task_queues.js:84:21) {
2020-10-22T16:58:50.083344+00:00 app[web.1]: fatal: true,
2020-10-22T16:58:50.083344+00:00 app[web.1]: code: 'PROTOCOL_CONNECTION_LOST'
2020-10-22T16:58:50.083345+00:00 app[web.1]: }
2020-10-22T16:59:28.144872+00:00 heroku[router]: at=info method=GET path="/" host=alt-bot-test.herokuapp.com request_id=cc359a55-b215-460b-88b2-f30011cc2f4b fwd="189.159.10.29" dyno=web.1 connect=1ms service=2ms status=304 bytes=150 protocol=https
2020-10-22T16:59:28.477327+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=alt-bot-test.herokuapp.com request_id=80f4874a-f2ca-4c47-a557-be7b5e91426e fwd="189.159.10.29" dyno=web.1 connect=1ms service=2ms status=304 bytes=150 protocol=https
2020-10-22T16:59:49.638151+00:00 app[web.1]: db error Error: Connection lost: The server closed the connection.
2020-10-22T16:59:49.638161+00:00 app[web.1]: at Protocol.end (/app/node_modules/mysql/lib/protocol/Protocol.js:112:13)
2020-10-22T16:59:49.638162+00:00 app[web.1]: at Socket.<anonymous> (/app/node_modules/mysql/lib/Connection.js:94:28)
2020-10-22T16:59:49.638162+00:00 app[web.1]: at Socket.<anonymous> (/app/node_modules/mysql/lib/Connection.js:526:10)
2020-10-22T16:59:49.638165+00:00 app[web.1]: at Socket.emit (events.js:326:22)
2020-10-22T16:59:49.638166+00:00 app[web.1]: at endReadableNT (_stream_readable.js:1223:12)
2020-10-22T16:59:49.638166+00:00 app[web.1]: at processTicksAndRejections (internal/process/task_queues.js:84:21) {
2020-10-22T16:59:49.638168+00:00 app[web.1]: fatal: true,
2020-10-22T16:59:49.638168+00:00 app[web.1]: code: 'PROTOCOL_CONNECTION_LOST'
2020-10-22T16:59:49.638169+00:00 app[web.1]: }