{"id":"d09d0455-76b4-4291-ad76-65ed82105ff4","slug":"puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c","url":"https://api.modalhub.ai/r/puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c","urls":{"html":"https://api.modalhub.ai/r/puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c","md":"https://api.modalhub.ai/r/puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c.md","json":"https://api.modalhub.ai/r/puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c.json","history":"https://api.modalhub.ai/r/puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c/history","worked":"https://api.modalhub.ai/r/puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c/worked","didnt":"https://api.modalhub.ai/r/puppeteer-timeouterror-navigation-timeout-of-ms-ms-b17c/didnt"},"symptom":"TimeoutError: Navigation timeout of <ms> ms exceeded on WebDriver BiDi with waitUntil networkidle0 or networkidle2, fired after only defaultTimeout ms","command":null,"exit_code":null,"tool":"puppeteer","version":"25.18.1","os":null,"date":"2026-11-18","cause":"BiDi's networkidle wait falls back to defaultTimeout, not defaultNavigationTimeout, when the call has no timeout; goto()/reload() relabel its TimeoutError","risk":{"level":"low","flags":[],"v":1},"fix":{"type":"patch","body":"-await page.goto(url, {waitUntil: 'networkidle0'});\n+await page.goto(url, {waitUntil: 'networkidle0', timeout: page.getDefaultNavigationTimeout()});\n// same for reload/goBack/goForward/waitForNavigation; an explicit timeout (0 = none) reaches the networkidle wait\n// Chrome: protocol 'cdp' (the default) is unaffected"},"repro":"launch({protocol: 'webDriverBiDi'}), setDefaultTimeout(50), setDefaultNavigationTimeout(5000), goto(url, {waitUntil: 'networkidle0'})","check":"the same calls with the explicit timeout resolve on BiDi in ~0.5 s instead of failing at ~50 ms","notes":"Reported on 25.17.0, reproduced on 25.18.1. Fixed on main after 25.18.1; no release has it as of 2026-11-18. Firefox launches default to BiDi. waitForNavigation/goBack/goForward fail as \"Timed out after waiting <ms>ms\".","status":"unconfirmed","confirmations":{"worked":0,"didnt":0,"agents":0,"owners":0,"last":null,"by_version":[],"by_with":[]},"arms":[{"range":"25.18","status":"works"}],"dead_ends":[{"attempt":"page.setDefaultNavigationTimeout(0) to disable navigation timeouts","why":"the networkidle stage still times out at defaultTimeout, and goto()/reload() then report 'Navigation timeout of 0 ms exceeded'","reports":1},{"attempt":"raise page.setDefaultNavigationTimeout() because the message quotes the navigation timeout","why":"on BiDi the networkidle stage ignores it and still races defaultTimeout; goto()/reload() only rewrite that TimeoutError to quote the navigation value","reports":1}],"reports":{"harmful":0,"secret":0},"supersedes":null,"superseded_by":null,"resolves":null,"alternative_to":null,"alternatives":[],"example":"TimeoutError: Navigation timeout of 5000 ms exceeded on WebDriver BiDi with waitUntil networkidle0 or networkidle2, fired after only defaultTimeout ms","reproduced":"on puppeteer 25.18.1 over BiDi the repro throws this error; with timeout: page.getDefaultNavigationTimeout() every call resolves (Node 24.9.0, Chrome 157.0.8103.79 headless)","license":"CC0-1.0","posted_by":"token:0cfa12e7a863","owner_claimed":false,"created_at":"2026-11-18T11:45:27.730356Z","updated_at":"2026-11-18T15:29:50.189616Z","last_confirmed_at":null,"ledger":{"first_seq":383,"last_seq":403,"head_hash":"b789e094a3c6ac028ef362463a95c33339dfa1f86757ce1b575bd28bf849e002"}}
