Makepad-fr / fbjs

Tooling that automates your Facebook interactions.
https://www.npmjs.com/package/@makepad/fbjs
GNU General Public License v3.0
63 stars 24 forks source link

TimeoutError and then app hangs #22

Closed gakowalski closed 3 years ago

gakowalski commented 3 years ago

Installed just now with

npm i facebook-group-posts-scraper -g --unsafe-perm

Version:

# fgps --version
2.3.0

(node:35) UnhandledPromiseRejectionWarning: TimeoutError: waiting for selector "#login_form" failed: timeout 30000ms exceeded at new WaitTask (/usr/local/lib/node_modules/facebook-group-posts-scraper/node_modules/puppeteer/lib/DOMWorld.js:549:28) at DOMWorld._waitForSelectorOrXPath (/usr/local/lib/node_modules/facebook-group-posts-scraper/node_modules/puppeteer/lib/DOMWorld.js:478:22) at DOMWorld.waitForSelector (/usr/local/lib/node_modules/facebook-group-posts-scraper/node_modules/puppeteer/lib/DOMWorld.js:432:17) at Frame.waitForSelector (/usr/local/lib/node_modules/facebook-group-posts-scraper/node_modules/puppeteer/lib/FrameManager.js:627:47) at Frame. (/usr/local/lib/node_modules/facebook-group-posts-scraper/node_modules/puppeteer/lib/helper.js:112:23) at Page.waitForSelector (/usr/local/lib/node_modules/facebook-group-posts-scraper/node_modules/puppeteer/lib/Page.js:1122:29) at facebookLogIn (/usr/local/lib/node_modules/facebook-group-posts-scraper/src/index.js:335:14) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async main (/usr/local/lib/node_modules/facebook-group-posts-scraper/src/index.js:599:10) (node:35) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) (node:35) [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.

gakowalski commented 3 years ago

Temporary fix, installing with latest code from GH instead of official NPM package:

npm i https://github.com/Makepad-fr/fbjs facebook-group-posts-scraper -g --unsafe-perm
kaanyagci commented 3 years ago

@gakowalski This is related to the version on npm is outdated. I'll fix the latest version manually and set the CI for further releases.

kaanyagci commented 3 years ago

Version 2.3.2 published on npm