Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/github/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/hadoop/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
GitHub Probot:错误Probot:签名与事件负载和机密不匹配_Github_Github Api_Probot - Fatal编程技术网

GitHub Probot:错误Probot:签名与事件负载和机密不匹配

GitHub Probot:错误Probot:签名与事件负载和机密不匹配,github,github-api,probot,Github,Github Api,Probot,我正在尝试使用构建GitHub应用程序 下面是文件index.js的内容: module.exports = (robot) => { robot.log('Yay, the app was loaded!'); robot.on('*', async context => { robot.log('Some event occured!'); }); } 但是,当我运行此应用程序时,在存储库中安装后,我收到以下错误: 03:38:34.831Z ERROR p

我正在尝试使用构建GitHub应用程序

下面是文件
index.js
的内容:

module.exports = (robot) => {
  robot.log('Yay, the app was loaded!');
  robot.on('*', async context => {
    robot.log('Some event occured!');
  });
}
但是,当我运行此应用程序时,在存储库中安装后,我收到以下错误:

03:38:34.831Z ERROR probot: signature does not match event payload and secret
  Error: signature does not match event payload and secret
      at verifyAndReceive (/mnt/e/GSoC/test/test/node_modules/@octokit/webhooks/middleware/verify-and-receive.js:9:19)
      at IncomingMessage.request.on (/mnt/e/GSoC/test/test/node_modules/@octokit/webhooks/middleware/middleware.js:53:5)
      at emitNone (events.js:106:13)
      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)

这个错误背后的问题是什么?如何解决此问题?

它说,
签名与事件负载和密码不匹配

这背后的可能原因是存储库的
.env
文件中的
WEBHOOK\u SECRET
与中的
WEBHOOK SECRET(可选)
不匹配

正确配置webhook secret将修复此错误