puppeteer-sharp icon indicating copy to clipboard operation
puppeteer-sharp copied to clipboard

NavigationException: 'Timeout of 30000 ms exceeded' with Firefox

Open Mbaspfd opened this issue 1 year ago • 2 comments

When trying to open any site in Firefox I always get the Exception TimeoutError: Navigation timeout of 30000 ms exceeded. Although a site is fully loaded.

Puppeteer-sharp v19.0.2 and .NET 8.0

My code:

var browserFetcher = new BrowserFetcher(SupportedBrowser.Firefox);
await browserFetcher.DownloadAsync();
var launchOptions = new LaunchOptions()
{
    Browser = SupportedBrowser.Firefox,
    Headless = false,
    DefaultViewport = null
};

var browser = await Puppeteer.LaunchAsync(launchOptions);
var page = (await browser.PagesAsync())[0];
await page.GoToAsync("https://google.com");

Mbaspfd avatar Sep 01 '24 20:09 Mbaspfd

Issue confirmed. Taking a look at it.

kblok avatar Sep 01 '24 22:09 kblok

Unfortunately. It seems that it's an issue on Firefox. And they won't fix that on CDP. You'll have to wait till I implement WebDriver BiDi support.

See upstream issues https://github.com/puppeteer/puppeteer/issues/13018

kblok avatar Sep 02 '24 12:09 kblok