aholachek/bundle-wizard

[feat] Override some default puppeteer option

jpvincent opened this issue · 0 comments

Hi !

first, thanks for this great tool !

I'm on a local site that is a bit slow and would like to wait a bit more, because I'm currently blocked by this

🧙‍  Welcome to bundle-wizard
✔ Which site would you like to analyze? · http://192.168.0.6:3000/courses-en-ligne
🤖  Loading http://192.168.0.6:3000/courses-en-ligne ...
⚠️  Unable to fetch website data

TimeoutError: Navigation timeout of 30000 ms exceeded
    at /Users/jpv/.npm/_npx/25331/lib/node_modules/puppeteer/lib/cjs/puppeteer/common/LifecycleWatcher.js:106:111 {
  name: 'TimeoutError'
}

I guess puppeteer is the source of my trouble here, I would like to have it wait longer.
You already added a useful --ignoreHTTPSerror flag, maybe adding a way to specifically configure the timeout would be good.
I guess more demands could arrive around puppeteer itself, so maybe giving a proxy option could help prevent this :)

Thanks