【问题标题】:Heroku is not running my bot discord.js and causing errorsHeroku 没有运行我的机器人 discord.js 并导致错误
【发布时间】:2020-12-19 17:12:42
【问题描述】:

每次 heroku 运行我的机器人时,我都会收到此错误:

2020-08-31T14:55:51.202566+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
2020-08-31T14:55:51.221755+00:00 heroku[web.1]: Stopping process with SIGKILL
2020-08-31T14:55:51.282351+00:00 heroku[web.1]: Process exited with status 137
2020-08-31T14:55:51.317667+00:00 heroku[web.1]: State changed from starting to crashed

这是我的 ProcFile:

worker: node index.js

我的 Package.json:

{
  "name": "yuuto-giveaway",
  "version": "1.0.0",
  "description": "A Giveaway Bot",
  "main": "index.js",
  "dependencies": {
    "discord.js": "^12.3.1",
    "fs": "^0.0.1-security",
    "ms": "^2.1.2",
    "path": "^0.12.7"
  },
  "devDependencies": {},
  "scripts": {
    "start": "node index.js"
  },
  "keywords": [
    "Fun"
  ],
  "author": "BlueFire",
  "license": "ISC"
}

我不知道如何解决它!

【问题讨论】:

    标签: heroku discord.js


    【解决方案1】:
    2020-08-31T14:55:51.202566+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch
    

    这是 Heroku 在他们的程序中的错误,这不是你的错。尝试重新创建、重新上传或从 Heroku 更改主机。试试Glitch,它适用于免费主机。虽然我建议你不要使用 Heroku 和 Glitch 这样的免费主机,因为它们 [非常] 不可靠。

    【讨论】:

      猜你喜欢
      • 2020-12-04
      • 2018-06-18
      • 2021-08-17
      • 2021-08-04
      • 1970-01-01
      • 2020-05-27
      • 2021-11-10
      • 2020-08-09
      • 2021-01-06
      相关资源
      最近更新 更多