Проблема с удержанием бота Discord в спящем режиме с помощью Heroku - PullRequest
0 голосов
/ 11 июля 2020

Журналы проекта:

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

Бот позже просыпается, если я перезапускаю все динамометрические станции, но только на короткое время, прежде чем это произойдет снова. Это бот с открытым исходным кодом, который я пытаюсь разместить самостоятельно и изо всех сил пытаюсь устранить эту проблему.

...