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 #20

Open
cubewebsites opened this issue Nov 25, 2019 · 3 comments
Open

TimeoutError #20

cubewebsites opened this issue Nov 25, 2019 · 3 comments

Comments

@cubewebsites
Copy link

Using latest version on Ubuntu 18.04

When trying to fetch a URL the script didn't finish running and I had to exit with Ctrl+C. When I did that, the following message was displayed:

TimeoutError: Navigation timeout of 30000 ms exceeded
    at Promise.then (/usr/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/LifecycleWatcher.js:142:21)
    at <anonymous>
  -- ASYNC --
    at Frame.<anonymous> (/usr/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/helper.js:111:15)
    at Page.goto (/usr/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/Page.js:675:49)
    at Page.<anonymous> (/usr/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/helper.js:112:23)
    at captureWebsite (/usr/lib/node_modules/capture-website-cli/node_modules/capture-website/index.js:239:51)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)

The URL in question does exist and isn't particularly large: 4.52 MB with 30 HTTP requests.

Could you advise on how to fix? Happy to help if you point me in the right direction.

@david-fanin
Copy link

Hello,
I have the same problem for all the URLs that generates a network error like for example: ERR_NAME_NOT_RESOLVED.

I have to do CTRL + C to get the error messages:

Error: net::ERR_NAME_NOT_RESOLVED at http://www.site.dom/
at navigate (/usr/local/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/FrameManager.js:120:37)
at process._tickCallback (internal/process/next_tick.js:68:7)
-- ASYNC --
at Frame. (/usr/local/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/helper.js:111:15)
at Page.goto (/usr/local/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/Page.js:675:49)
at Page. (/usr/local/lib/node_modules/capture-website-cli/node_modules/puppeteer/lib/helper.js:112:23)
at captureWebsite (/usr/local/lib/node_modules/capture-website-cli/node_modules/capture-website/index.js:233:51)
at process._tickCallback (internal/process/next_tick.js:68:7)

@cubewebsites
Copy link
Author

I have a temporary fix for this which is to use the "timeout" command (not the timeout option in capture-website-cli), if you do the following then the process is killed after the timeout period and you can grab the output. This solves the issue for me although error handling within this package would be better.

timeout [seconds] capture-website-cli [..your options...]

@david-fanin
Copy link

Thanks for the tip! It works well in the meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants