Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TimeoutError and then app hangs #22

Closed
gakowalski opened this issue Feb 10, 2021 · 3 comments · Fixed by #25
Closed

TimeoutError and then app hangs #22

gakowalski opened this issue Feb 10, 2021 · 3 comments · Fixed by #25
Assignees
Labels
bug Something isn't working

Comments

@gakowalski
Copy link
Contributor

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
Copy link
Contributor Author

gakowalski commented Feb 10, 2021

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
Copy link
Contributor

kaanyagci commented Feb 10, 2021

@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 kaanyagci added the bug Something isn't working label Feb 10, 2021
@kaanyagci kaanyagci self-assigned this Feb 10, 2021
@kaanyagci
Copy link
Contributor

Version 2.3.2 published on npm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants