stereobooster / react-snap

👻 Zero-configuration framework-agnostic static prerendering for SPAs
MIT License
5.06k stars 394 forks source link

Navigation Timeout Exceeded: 30000ms exceeded #395

Closed DB-Alex closed 5 years ago

DB-Alex commented 5 years ago

No matter what i try, 1.23.0 or 1.10.0. I always get this error:

Am i doing something wrong?

error at / { TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded at Promise.then (/Users/alexvdvegt/Sites/DirectBasing/Core/direct-basing/webapp/node_modules/puppeteer/lib/LifecycleWatcher.js:142:21) at -- ASYNC -- at Frame. (/Users/alexvdvegt/Sites/DirectBasing/Core/direct-basing/webapp/node_modules/puppeteer/lib/helper.js:111:15) at Page.goto (/Users/alexvdvegt/Sites/DirectBasing/Core/direct-basing/webapp/node_modules/puppeteer/lib/Page.js:629:49) at Page. (/Users/alexvdvegt/Sites/DirectBasing/Core/direct-basing/webapp/node_modules/puppeteer/lib/helper.js:112:23) at fetchPage (/Users/alexvdvegt/Sites/DirectBasing/Core/direct-basing/webapp/node_modules/react-snap/src/puppeteer_utils.js:232:22) at at process._tickCallback (internal/process/next_tick.js:189:7) name: 'TimeoutError' }

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Process finished with exit code 1

stereobooster commented 5 years ago

Hard to tell do you use built-in server or external? Can you post reproducible example?

DB-Alex commented 5 years ago

I use the build in server and very basic setup from the readme. Only the index.js is edited to hydrate and thats it.

stereobooster commented 5 years ago

First time I see this error. This is not the same error as https://github.com/stereobooster/react-snap/issues/240. If you would post example, I can run it. If it would work on my machine then the problem is in your machine. The server for some reason doesn't work

DB-Alex commented 5 years ago

The server is starting, because i see some console.log messages from my CRA:

$ react-snap ️️️💬 console.log at /: Content is cached for offline use. ️️️💬 console.log at /: This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA 🔥 error at / { TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded

DB-Alex commented 5 years ago

When i use headless = false then it boots and i see it is crashing at an user form: ️️️💬 console.log at /: [DOM] Password field is not contained in a form: (More info: https://goo.gl/9p2vKq) %o

Is it possible to give some kind of sitemap to react-snap? I dont need my login page to snapped.

DB-Alex commented 5 years ago

After fixing all autocomplete suggestions puppeteer does not crash anymore :)

nickjuntilla commented 4 years ago

After fixing all autocomplete suggestions puppeteer does not crash anymore :)

Where do you find the auto-complete suggestions?

kamami commented 4 years ago

Same Problem

insivika commented 4 years ago

same problem

yellowbang commented 4 years ago

same problem

dang1412 commented 3 years ago

same problem with firebase page, is there any option to use the result after a certain time ex. 20s, no need to wait for network idle then throw error, should use the current result instead of throwing error.

JulianPhillips commented 3 years ago

same problem

everdrone commented 2 years ago

same problem