actor-scraper icon indicating copy to clipboard operation
actor-scraper copied to clipboard

`input.pageLoadTimeoutSecs` does not propagate to `gotoOptions`

Open mnmkng opened this issue 3 years ago • 0 comments

From customer:

While we were working on a task created from the apify/puppeteer-scraper (build 2.0.8), we encountered a possible bug in the preNavigationHooks. Although we were setting a "pageLoadTimeoutSecs" of 180 seconds, our task would timeout after 60 seconds and what we've found was that in the "goToOptions" from the preNavigationHooks, the timeout was still set to 60 seconds, instead of taking the value set in the "pageLoadTimeoutSecs" property. We had to manually assign the "pageLoadTimeoutSecs" value to the "goToOptions"s timeout property to make it work.

I briefly checked the code and it should work, so not sure what's going on. More in Slack.

Run logs: https://pastebin.com/ec31MQBp

mnmkng avatar Jul 26 '22 14:07 mnmkng