wet-aquaW
Apify & Crawlee4y ago
20 replies
wet-aqua

Mark session as bad when request times out or proxy responds with 502

I'm using CheerioCrawler and I'd like to mark sessions as bad when the request either times out or there's a proxy error. Those cases trigger an error before reaching requestHandler and the request is added back to the queue without me having the opportunity to mark the session. Is there a hook somewhere that I can use? Or should I override _requestFunctionErrorHandler?
Was this page helpful?