BotFramework TestBot with Facebook Adapter is not validating the Callback Url. We are experiencing an [ERR_INVALID_ARG_TYPE] exception.
_Note: Same that #1817 automatically closed due to lack of activity._
Steps to reproduce the behavior:





The URL should get verified.
In facebook_adapter.ts, in processActivity method, add the following code:
var url = req.url;
var params = url.split('?');
var urlParams = new URLSearchParams(params[1]);
if (urlParams.get('hub.mode') === 'subscribe') {
var verify_token = urlParams.get('hub.verify_token');
if (verify_token === this.options.verify_token) {
var challenge = urlParams.get('hub.challenge');
res.status = 200;
res.sendRaw(challenge);
} else {
res.status = 401;
throw new Error('Webhook not validated');
}
} else {
if (await this.verifySignature(req, res) === true) {
...
[bug]
I'd like to help with this
This has been added to the sample code in the README, but I do not plan on adding it directly to the adapter.
Most helpful comment
This has been added to the sample code in the README, but I do not plan on adding it directly to the adapter.