/home/techb158/ileadtechnology.com/vendor/spatie/crawler/src/Handlers
Edit: /home/techb158/ileadtechnology.com/vendor/spatie/crawler/src/Handlers/CrawlRequestFailed.php (865B)
crawler = $crawler;
}
public function __invoke(Exception $exception, $index)
{
if ($exception instanceof ConnectException) {
$exception = new RequestException('', $exception->getRequest());
}
if ($exception instanceof RequestException) {
$crawlUrl = $this->crawler->getCrawlQueue()->getUrlById($index);
$this->crawler->getCrawlObservers()->crawlFailed($crawlUrl, $exception);
}
usleep($this->crawler->getDelayBetweenRequests());
}
}