-
Notifications
You must be signed in to change notification settings - Fork 393
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
Navigation Timeout Exceeded #240
Comments
Been struggling with this for a long time. I've noticed something interesting: when you launch using Also been getting Anyway I've found a workaround: simply changing Reference: https://github.com/GoogleChrome/puppeteer/blob/v1.7.0/docs/api.md#pagegotourl-options |
@nickjanssen : thanks for this ! I forked and switch to |
Be aware this is not universal solution, it can happen that react-snap silently fail to prerender something and you will not even notice it. You need to be careful here, because manipulation happens after all linters, tests, type checks, builds etc. So it can be pretty fragile, that is why react-snap so verbose with all message and warnings |
Thanks for this clarification. But it's the only way i found to avoid random |
@nickjanssen I guess you need skip intercom in prerndering stage with this check |
I also have Intercom and i added a condition like you suggest to disable loading it but it doesn't change anything. Puppeteer has very weird behavior sometimes... |
Suggested by stereobooster/react-snap#240 To fix timeout issue
Can confirm that this is still an issue. I use firebase (firestore) to fetch data on the landing page and that seems to introduce the timeout issue. Before that component |
To chime in on this, I've just managed to resolve an issue I was having by downgrading my the version of react-snap from For my scenario we build inside Docker, and our package.json file uses the following config:
We need to skip the third party requests because these are analytics tools that don't start up correctly if we prerender them. With Turns out it was all down to this same issue! |
What's weird is I am not fetching any data from third parties and am still getting this issue. Could the CRA service worker be causing it somehow I wonder... |
Based on conversation at stereobooster#240 (comment) We have changed the timeout condition to wait untill the page has finished loading
Hey there … I've also gotten this error and had for a while just given up on the idea of getting a WebGL context to render screenshots via react-snap (love this library for everything else though). Yesterday I was updating some other dependencies and got sucked back into this rabbit hole. This morning I stumbled across puppeteer/puppeteer#5306 which lead me to try implementing a simplified version of @paulirish's No special Anyway, fork is here master...mysterycommand:feat/shim-requestAnimationFrame … happy to open a PR if you think it's worthy. 🙏 🙇 ❤️ |
I am trying to add react-snap to https://github.com/raulcostajunior/react_sudoku. I followed these instructions: Install:
Change package.json:
Change src/index.js (for React 16+):
And this is the output (probably more than you actually care about):
There is nothing about "Tracked URLs that have not finished", although this is react-snap 1.23.0.
|
Encountered the problem described by @dHannasch, any updates? |
Also having this issue. I would be happy to exclude the paths that are causing this on my app is there a way to do that? ( the issue is with my reviews page that takes some time to load all the data.) |
I downgrade to 1.10.0 as many people suggest and it works. However, some css files are not imported properly. Any better solution beside downgrade to 1.10.0? |
I ended up converting my app to Gatsby partly to get around this 😱. I suppose there were some other benefits to doing it... |
+1 regarding downgrading to 1.10.0, it worked for me too. |
I found out that firebase has this request, looks like it take long time in the Chrome debug network tab
I only use this to get data, the request is done properly but perhaps it has extra side effect
|
It seems caused by firebase rpc request? When I switch to firestore REST api request it runs ok ✅ |
+1 downgrading to 1.10.0 works |
1 similar comment
+1 downgrading to 1.10.0 works |
Starting from version
1.18.0
there should be more details about this error. If you seeNavigation Timeout Exceeded...
and on the next line:Tracked URLs that have not finished... or For...
You know what times out, go ahead and fix it.
But there are no pending connections
If you see this message, please report it here. It would be nice if you have reproducible example. I suspect this is a bug in puppeteer. I need reproducible examples to report it to puppeteer tracker.
Thanks.
In
react-snap@1.10.x
this error looks likePossibly related puppeteer bugs
I suspect that the bug which causes this issue is puppeteer/puppeteer#1454, which was introduced after Puppeteer
0.13.0
. That is why downgradingreact-snap
to1.10.0
works, because in1.11.0
Puppeteer dependency was bumped to1.0.0
Other:
Navigation Timeout Exceeded
when usingnetworkidle0
and no insight into what timed out puppeteer/puppeteer#1908 (comment)Possible workarounds
react-snap@1.10.0
react-snap
withpuppeteer@0.13.0
as dependency. Do we also need branch ofminimalcss
withpuppeteer@0.13.0
?puppeteer
versionCreated those branches:
The text was updated successfully, but these errors were encountered: