Skip to content
This repository has been archived by the owner on May 8, 2020. It is now read-only.

Navigation Timeout Exceeded: 30000 ms exceeded #285

Open
viponedream opened this issue Dec 24, 2019 · 7 comments
Open

Navigation Timeout Exceeded: 30000 ms exceeded #285

viponedream opened this issue Dec 24, 2019 · 7 comments

Comments

@viponedream
Copy link

viponedream commented Dec 24, 2019

it always says:
pyppeteer.errors.TimeoutError: Navigation Timeout Exceeded: 30000 ms exceeded.

in fact, it open the url very fast and load well.
but, the webdriver doesnt know yet. it thinks the page is still empty. i can see it with my eyes the page has opened already.
How to make the page knows it?

timeout=30*1000 options = {"waitUntil": 'load', "timeout": timeout} url = 'https://www.baiduc.com' await page.goto(url, options=options)

and then i try this below, it's the same error, timeout. of course the page is already opened.
await asyncio.wait([page.goto(url, options=options), page.waitForNavigation() ])

to solve this problem is to set timeout=0 but it keep waiting so long.

@mayurtntra
Copy link

set timout=1000000

@viponedream
Copy link
Author

what's the different ?
set timout=1000000
set timeout=0

@mayurtntra
Copy link

Exactly i don't know.

@gseismic
Copy link

@zhtfish
Copy link

zhtfish commented Jan 16, 2020

Hi viponedream,do you have solved this problem? I meet this problem as your,and would you show me your solution if you have solve it?

@viponedream
Copy link
Author

timeout=0

async def goto_url_async(page, url, flag=None, timeout=0):
options = {"waitUntil": 'load', "timeout": timeout}
await page.goto(url, options=options)

@Mattwmaster58
Copy link

Hi @viponedream, it looks like this project has been abandoned. You may want to consider the active fork pyppeteer2. Feel free to create an issue there if your problem persists with the updated libary.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants