Yoctol / bottender

⚡️ A framework for building conversational user interfaces.
https://bottender.js.org
MIT License
4.19k stars 331 forks source link

Does anyone encounter this error? fbtraceId": "AjiftY1LUkZGHyPKX3GbopA #960

Open neziarxdxd opened 2 years ago

neziarxdxd commented 2 years ago

× 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" } }

theGBguy commented 2 years ago

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.