我用微软的机器人框架创建了一个机器人。我已将它部署在 Microsoft Azure 上,我可以在 Microsoft Teams 中使用它。现在我想将它集成到 Facebook Workplace。我已经按照 Microsoft 文档中公开的程序安装并运行了该机器人。但是当我试图在工作区界面中与它交谈时,我收到了这个错误: 查看错误详细截图
Error: Invalid signature on incoming request
如您所见,该消息已被机器人接收但无法处理。
更具体地说,这是引发此错误的一段代码:有问题的 代码
我无法解释它,因为如果我在论坛和文档中理解了我的红色,问题是请求没有正确签名,但它们直接来自 facebook。
所以你知道我的项目的架构是什么,这里是 package.json 文件:
{
"name": "AppName",
"version": "1.0.0",
"description": "Offer an ergonomic interface between Microsoft Teams and our solution",
"author": "Generated using Microsoft Bot Builder Yeoman generator v4.7.0",
"license": "MIT",
"main": "./lib/index.js",
"scripts": {
"build": "npm run config && npm run html && tsc --build",
"lint": "tslint -c tslint.json 'src/**/*.ts'",
"postinstall": "npm run build && node ./deploymentScripts/webConfigPrep.js",
"start": "npm run build && node ./lib/index.js",
"test": "echo \"Error: no test specified\" && exit 1",
"watch": "nodemon --watch ./src -e ts --exec \"npm run start\"",
"html": "copyfiles -f src/**/*.html lib/",
"config": "copyfiles config/* lib/"
},
"repository": {
"type": "git",
"url": "https://github.com"
},
"dependencies": {
"@microsoft/teams-js": "^1.9.0",
"axios": "^0.21.1",
"botbuilder": "^4.12.0",
"botbuilder-dialogs": "^4.12.0",
"botbuilder-adapter-facebook": "^1.0.11",
"config": "^3.3.6",
"dotenv": "^8.2.0",
"replace": "^1.2.0",
"restify": "^8.5.1",
"rxjs": "^6.6.6",
"vue": "^2.6.12"
},
"devDependencies": {
"@types/restify": "8.5.1",
"copyfiles": "^2.4.1",
"nodemon": "^2.0.7",
"tslint": "^6.1.3",
"typescript": "^4.2.3"
}
}
如果有人以前看过这个或有任何想法或建议,不客气,我完全没有想法......