EmberE
Apify & Crawlee6mo ago
4 replies
Ember

postNavigationHooks timeout

I'm using camoufox and handleCloudflareChallenge utility in postNavigationHooks and request timeout after 100 seconds. Is it possible to lower the timeout limit from 100 in postNavigationHooks? it seems like it doesn't respect requestHandlerTimeoutSecs or navigationTimeoutSecs
Solution
RequestHandlerTimeoutSecs is enforced by Apify/Crawlee’s overall request handler, but once inside a postNavigationHook, you're in user-defined logic.
If handleCloudflareChallenge doesn't internally support a timeout (or ignores one), it might block longer than desired.
navigationTimeoutSecs applies to page.goto() and similar calls — not necessarily to post-navigation scripts.
Was this page helpful?