Yoctol/bottender

Does anyone encounter this error? fbtraceId": "AjiftY1LUkZGHyPKX3GbopA

neziarxdxd opened this issue · 1 comments

× Failed to set Messenger webhook
× status: 400
× data: {
"error": {
"message": "(#2201) response does not match challenge, expected value="140546364", received="\u003C!DOCTYPE html>\n\u003Ch..."",
"type": "OAuthException",
"code": 2201,
"fbtraceId": "AjiftY1LUkZGHyPKX3GbopA"
}
}

I am encountering this problem as well. All the access tokens and ids seems to be correctly placed.
EDIT: I successfully set up the messenger hook just now.
Steps:

  1. Create a free ngrok account.
  2. Setup the ngrok cli.
  3. Run the bot in live mode; npm start
  4. Host the localpage manually using ngrok; ngrok http <port>. (use the same port where live server is running)
  5. Then run npx bottender messenger webhook set

That error occurred when I run npm run dev where the server will be hosted automatically by ngrok but probably in unknown account.