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: Navigation Timeout Exceeded: 30000ms exceeded #541

Open
Lazy-C0der opened this issue Aug 21, 2021 · 11 comments
Open

TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded #541

Lazy-C0der opened this issue Aug 21, 2021 · 11 comments

Comments

@Lazy-C0der
Copy link

[email protected] postbuild D:\OfficiaL\blog\client
react-snap

?? error at / TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
at D:\OfficiaL\blog\client\node_modules\puppeteer\lib\LifecycleWatcher.js:142:21
-- ASYNC --
at Frame. (D:\OfficiaL\blog\client\node_modules\puppeteer\lib\helper.js:111:15)
at Page.goto (D:\OfficiaL\blog\client\node_modules\puppeteer\lib\Page.js:674:49)
at Page. (D:\OfficiaL\blog\client\node_modules\puppeteer\lib\helper.js:112:23)
at fetchPage (D:\OfficiaL\blog\client\node_modules\react-snap\src\puppeteer_utils.js:232:22)
at processTicksAndRejections (internal/process/task_queues.js:95:5)

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postbuild: react-snap
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postbuild script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Admin\AppData\Roaming\npm-cache_logs\2021-08-21T21_02_16_602Z-debug.log

this one is updated version still not working

@vishishttiwari
Copy link

Exactly the same problem. Any solution?

@sushmavoleti
Copy link

sushmavoleti commented Nov 26, 2021

Same problem. Ay solution? I'm using react-snap 1.23.0

@igorilyichyov
Copy link

Same problem. react-snap 1.23.0

@joshephan
Copy link

joshephan commented Mar 5, 2022

Same problem on react-snap 1.23.0.

I'd checked before thread, this problem is related to firebase and puppeteer.

My case downgrade react-snap 1.10.0 works well.

@dominiczy
Copy link

I was able to fix this by setting Puppeteer options to "waitUntil": "networkidle2"

@harrymelka
Copy link

harrymelka commented Mar 9, 2022

Screenshot 2022-03-09 at 18 03 15

Go to LifecycleWatcher.js inside node modules, _createTimeoutPromise functions line 137 and just add

return new Promise(() => {});

With that you are removing the timeout.

it should work, it's going to take more time to do it but it's working.

@NateBaldwinDesign
Copy link

Same issue, none of the above methods worked for me.

@stistoyanov
Copy link

stistoyanov commented Jul 25, 2023

Just add puppeteer.timeout with a greater value wich works for you and also skipThirdPartyRequests in reactSnap:

"scripts": {
...
"postbuild": "react-snap"
},
"reactSnap": {
"skipThirdPartyRequests": true,
"puppeteer": { "timeout": 90000 },
"puppeteerArgs": ["--no-sandbox", "--disable-setuid-sandbox"]
},

@diohsu-mrliving
Copy link

Screenshot 2022-03-09 at 18 03 15

Go to LifecycleWatcher.js inside node modules, _createTimeoutPromise functions line 137 and just add

return new Promise(() => {});

With that you are removing the timeout.

it should work, it's going to take more time to do it but it's working.

It works to me.
thanks!

@loganknecht
Copy link

I am experiencing this issue as well, and the above solutions did not work.

@smuchara
Copy link

for future refrences hope y'all found a solution but on my end degraded to version @1.10.0

npm install [email protected] --save-dev

this what worked for me

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