content.ForEach is not a function
See original GitHub issueHello, I am a developer of a Homebridge plugin, and I am having a user report this error:
[12/23/2020, 4:09:41 PM] TypeError: content.forEach is not a function
at parse (/homebridge/node_modules/homebridge-adt-pulse/node_modules/cheerio/lib/parse.js:38:15)
at Function.exports.load (/homebridge/node_modules/homebridge-adt-pulse/node_modules/cheerio/lib/static.js:39:14)
at /homebridge/node_modules/homebridge-adt-pulse/api.js:598:39
at arrayMap (/homebridge/node_modules/homebridge-adt-pulse/node_modules/lodash/lodash.js:639:23)
at Function.map (/homebridge/node_modules/homebridge-adt-pulse/node_modules/lodash/lodash.js:9580:14)
at Request._callback (/homebridge/node_modules/homebridge-adt-pulse/api.js:597:28)
at Request.self.callback (/homebridge/node_modules/homebridge-adt-pulse/node_modules/request/request.js:185:22)
at Request.emit (events.js:315:20)
at Request.<anonymous> (/homebridge/node_modules/homebridge-adt-pulse/node_modules/request/request.js:1154:10)
at Request.emit (events.js:315:20)
[12/23/2020, 4:09:41 PM] Got SIGTERM, shutting down Homebridge...
More details in this issue
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
forEach is not a function error with JavaScript array
First option: invoke forEach indirectly. The parent.children is an Array like object. Use the following solution: const parent = this.el.
Read more >TypeError: foreach is not a function in JavaScript - Java2Blog
TypeError : .foreach is not a function occurs when we call foreach() function on object which is not array , Set or Map...
Read more >Solving: forEach is not a function - Beamtic
The best solution is to make sure you got the correct data type to begin with; in order for the forEach method to...
Read more >TypeError: forEach is not a function in JavaScript - Stack Diary
The "TypeError: forEach is not a function" error is thrown when the code attempts to call the forEach() method on a value that...
Read more >How to to solve 'TypeError: forEach is not a function' error in ...
The reason why the error happens is that you are trying to call .forEach function on something which is not an array, Map...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
sample from your code where it happens
variable
sensor
is single object (html node)older version wraps it into array
Hello, we are recently encountering this issue in our application as well, coming from a dependency that we are using. Could you tell us when the new version with the fix will be released? Thanks!