让Heroku使不和谐的机器人保持清醒的问题

时间:2020-07-11 13:53:06

标签: node.js heroku discord

项目日志:

2020-07-11T13:42:18.788787+00:00 app[web.1]: (node:34) UnhandledPromiseRejectionWarning: DiscordAPIError: Unknown User
2020-07-11T13:42:18.788789+00:00 app[web.1]:     at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:170:25)
2020-07-11T13:42:18.788790+00:00 app[web.1]:     at processTicksAndRejections (internal/process/task_queues.js:97:5)
2020-07-11T13:42:18.788931+00:00 app[web.1]: (node:34) 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)
2020-07-11T13:42:18.789105+00:00 app[web.1]: (node:34) [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.
2020-07-11T13:43:12.763054+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2020-07-11T13:43:12.790115+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-07-11T13:43:12.896820+00:00 heroku[web.1]: Process exited with status 137
2020-07-11T13:43:12.935570+00:00 heroku[web.1]: State changed from starting to crashed

如果我重新启动所有测功机,则机器人随后会醒来,但只有一小会儿,然后再次发生这种情况。这是一个开放源代码的bot,我正在尝试自行托管,并正在努力解决此问题。

0 个答案:

没有答案