probot: Bot crashes on startup

Bug Report

Current Behavior Bot crashes on startup.

❯ NODE_ENV=production pnpm start

> maintainer-bot@1.0.0 start /home/xenfo/Desktop/Projects/gh-bots/maintainer-bot
> probot run ./lib/index.js

(node:77132) UnhandledPromiseRejectionWarning: Error: [@octokit/auth-app] appId option is required
    at Object.createAppAuth (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/@octokit+auth-app@3.4.1/node_modules/@octokit/auth-app/dist-node/index.js:476:11)
    at getState (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/octokit-auth-probot@1.2.4_@octokit+core@3.4.0/node_modules/octokit-auth-probot/dist-node/index.js:181:21)
    at createProbotAuth (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/octokit-auth-probot@1.2.4_@octokit+core@3.4.0/node_modules/octokit-auth-probot/dist-node/index.js:196:17)
    at new Octokit (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/@octokit+core@3.4.0/node_modules/@octokit/core/dist-node/index.js:112:20)
    at new _a (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/@octokit+core@3.4.0/node_modules/@octokit/core/dist-node/index.js:166:30)
    at new OctokitWithDefaults (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/@octokit+core@3.4.0/node_modules/@octokit/core/dist-node/index.js:142:11)
    at new OctokitWithDefaults (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/@octokit+core@3.4.0/node_modules/@octokit/core/dist-node/index.js:142:11)
    at new Probot (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/probot@11.4.0/node_modules/probot/lib/probot.js:39:25)
    at new ProbotWithDefaults (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/probot@11.4.0/node_modules/probot/lib/probot.js:73:17)
    at new Server (/home/xenfo/Desktop/Projects/gh-bots/maintainer-bot/node_modules/.pnpm/probot@11.4.0/node_modules/probot/lib/server/server.js:34:26)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:77132) 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: 2)
(node:77132) [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.

Expected behavior/code Bot to work especially since it’s boilerplate.

Environment

  • Probot version(s): 11.4.0
  • Node/npm version: 14.17.0, pnpm 6.6…2
  • OS: Kubuntu 21.04

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

Got it to work, seems like something was wrong with my key