question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

BootBot.js: TypeError: Cannot read property 'forEach' of undefined

See original GitHub issue

tag: needs-investigation

Once in awhile, I get this error in my logs, but I can’t seem to find the cause:

TypeError: Cannot read property 'forEach' of undefined at data.entry.forEach(/app/node_modules/bootbot/lib/BootBot.js:408:24) 

I’ll update if I get it.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
FnTmcommented, Nov 8, 2017

Update: if you only want to stop receiving these errors there is a simple way to do that:

  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.

3reactions
FnTmcommented, Nov 6, 2017

@mraaroncruz this is a message that triggered this notice for me:

{ object: 'page',
  entry: 
   [ { id: '1627653683954046',
       time: 1509995621217,
       standby: 
        [ { recipient: { id: '1627653683954046' },
            timestamp: 1509995621217,
            sender: { id: '1193950450705282' },
            postback: { title: 'Nē' } } ] } ] }

The interesting thing here is that everything still works fine, and I can continue the conversation without a problem.

Edit: Looks like it’s something to do with the Handover feature (https://developers.facebook.com/docs/messenger-platform/reference/webhook-events/standby/)

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'forEach' of undefined when ...
get is a method. guild will therefor be a function. A function doesn't have a members property -> undefined -> discord.js ...
Read more >
Cannot read property 'forEach' of undefined in angular object ...
core.js:6210 ERROR TypeError: Cannot read property 'forEach' of undefined at UpdateUserComponent.ngOnInit (update-user.component.ts:34).
Read more >
A brand new website interface for an even better experience!
TypeError : Cannot read property 'forEach' of undefined (Heroku logs)
Read more >
Cannot read property 'forEach' of undefined discord.js-discord.js
Coding example for the question TypeError: Cannot read property 'forEach' of undefined discord.js-discord.js.
Read more >
ERROR TypeError: Cannot read property title of undefined
HEY, SET YOUR LIKE THERE ! ... Your browser can't play this video. ... Solved: ERROR TypeError : Cannot read property title of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found