Charca / bootbot

Facebook Messenger Bot Framework for Node.js
MIT License
974 stars 253 forks source link

Handle "standby" messages #86

Closed mraaroncruz closed 1 year ago

mraaroncruz commented 6 years ago

Currently bootbot throws an exception if it receives a standby message. TypeError: Cannot read property 'forEach' of undefined at data.entry.forEach(/app/node_modules/bootbot/lib/BootBot.js:408:24

Handle these more effectively.

Discussion

Charca commented 6 years ago

Quoting workaround from @FnTm in case you want to stop receiving these errors while we work on a fix:

  1. Go to you App Settings
  2. Messenger -> Settings -> Edit Events (on Webhooks section header) and uncheck standby

No more TypeErrors, which is what I was after in my case.