miyakogi / pyppeteer

Headless chrome/chromium automation library (unofficial port of puppeteer)
Other
3.56k stars 372 forks source link

Navigation Timeout Exceeded: 30000 ms exceeded #285

Open viponedream opened 4 years ago

viponedream commented 4 years ago

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 commented 4 years ago

set timout=1000000

viponedream commented 4 years ago

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

mayurtntra commented 4 years ago

Exactly i don't know.

gseismic commented 4 years ago

NOT https://www.baiduc.com BUT https://www.baidu.com

zhtfish commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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.