breuerfelix / jinsta

javascript + instagram + algorithms
MIT License
60 stars 13 forks source link

unhandled promise rejection warning #28

Closed ghost closed 5 years ago

ghost commented 5 years ago

heres my terminal log. Ran into an issue that stopped the liking.

generate new feed (node:49920) UnhandledPromiseRejectionWarning: TypeError: this.media.push is not iterable (cannot read property Symbol(Symbol.iterator)) at CommentFeed.run (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\feeds\base.js:34:20) at async UserFeed.runNewFeed (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\feeds\user.js:72:12) at async UserFeed.run (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\feeds\base.js:92:11) at async CommentFeed.runNewFeed (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\feeds\comment.js:75:12) at async CommentFeed.run (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\feeds\base.js:92:11) at async TimelineFeed.runNewFeed (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\feeds\timeline.js:72:12) at async TimelineFeed.run (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\feeds\base.js:92:11) at async loop.run (C:\Users\Adil\Desktop\instagrambot\node_modules\jinsta\dist\loop.js:45:5) (node:49920) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:49920) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

breuerfelix commented 5 years ago

i had some issues with the comment / user feeds but this should be fixed in the new version coming in some minutes ! :)