【问题标题】:GitHub Probot : ERROR probot: Bad RequestGitHub Probot:错误probot:错误请求
【发布时间】:2018-09-03 13:03:18
【问题描述】:

我正在为 Probot 开发一个应用程序。我已经配置了.env并且已经在文件夹中下载了PEM文件。

这是index.js文件的内容。

module.exports = (robot) => {
robot.on('issues.opened', async context => {  
    const params = context.issue({ body: 'Hello World!' })
    return context.github.issues.createComment(params)
})
}

但是我收到了这个错误。

  ERROR probot: Bad Request
  Error: Bad Request
      at Request.callback (/media/ashutosh/ASHUTOSH ( PERSONAL )/Gsoc/probot/practice/ashutosh-probot/node_modules/superagent/lib/node/index.js:696:15)
      at IncomingMessage.parser (/media/ashutosh/ASHUTOSH ( PERSONAL )/Gsoc/probot/practice/ashutosh-probot/node_modules/superagent/lib/node/index.js:906:18)
      at emitNone (events.js:111:20)
      at IncomingMessage.emit (events.js:208:7)
      at endReadableNT (_stream_readable.js:1064:12)
      at _combinedTickCallback (internal/process/next_tick.js:138:11)
      at process._tickDomainCallback (internal/process/next_tick.js:218:9)

如何解决这个问题?

【问题讨论】:

  • 我遇到了这个错误,因为我在 GitHub 上的 Webhook Secret 中有错字,与我的 .env 文件不匹配

标签: github github-api probot


【解决方案1】:

这个错误不是因为Probot,而是GitHub上的错误结束了。

此错误可能是因为您在创建新的 GitHub 应用程序时输入了错误的用户授权回调 URL。更新此内容将解决此问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-11-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-09-02
    • 1970-01-01
    • 2023-02-26
    相关资源
    最近更新 更多