Navigation Timeout Exceeded with page.setRequestInterception(true)
See original GitHub issueSteps to reproduce
Tell us about your environment:
- Puppeteer version: 1.8.0
- Platform / OS version: MacOS 10.13.4 High Sierra
- URLs (if applicable):
- Node.js version: 7.6.0
- Chromium. ~/node_modules/puppeteer/.local-chromium/mac-588429 under version 71.0.3542.0
What steps will reproduce the problem?
const puppeteer = require("puppeteer");
(async() => {
browser = await puppeteer.launch();
page = await browser.newPage();
await page.setRequestInterception(true);
page.on("request", request => {
console.log(request.url());
request.continue();
});
await page.goto("https://example.url", { timeout: 0, waitUntil: "networkidle0" });
})();
What is the expected result? Requests continues successfully.
What happens instead? https://fonts.gstatic.com/s/lato/v14/S6uyw4BMUTPHjxAwWyWtFCc.ttf https://fonts.gstatic.com/s/lato/v14/S6u9w4BMUTPHh50XSwaPHA3q5d0.ttf https://fonts.gstatic.com/s/lato/v14/S6u9w4BMUTPHh6UVSwaPHA3q5d0.ttf https://example.url/j_spring_security_check
(node:85615) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TimeoutError: Navigation Timeout Exceeded: 30000ms exceeded
(node:85615) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
== I’ve re-installed puppeteer a few times yesterday so I supposed I got the rolled back version of Chromium. I’ve also tried --ignore-certificate-errors or --enable-features=NetworkService, but not much luck here. Rolling back to 1.6.2 w/ earlier verison of chromium works, but then the fix to set pdf window size in 1.8.0 will not be included.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (2 by maintainers)
Top GitHub Comments
@batt842 all these URLs work with Puppeteer 1.17.0.
Everybody: request interception is getting better and better in recent Puppeteer versions. So please, give it chance!
If request interception still doesn’t work for you in the latest Puppeteer version, please file a new issue with a good repro we can play with!!
I’m having same issue on
1.10.0
adding this snippet gives navigationTimeout error on some pages, for example on this page:
https://www.freepeople.com/shop/vintage-1960s-handmade-sweater/ Resource that blocks page from loading: https://www.freepeople.com/orchestration/js/navigation/
Downgrading to
1.6.2
helped.