When ConnectException happens, in Spatie\Crawler\Handlers\CrawlRequestFailed it is converted to RequestException. However exception's message is not transfered so in CrawlObserver::crawlFailed you do not have a reason why it really failed.
It happened to me when there was a timeout in Guzzle and message "cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://(...)" was lost.
Hi,
When
ConnectException
happens, inSpatie\Crawler\Handlers\CrawlRequestFailed
it is converted toRequestException
. However exception's message is not transfered so inCrawlObserver::crawlFailed
you do not have a reason why it really failed. It happened to me when there was a timeout in Guzzle and message "cURL error 28: Operation timed out after 10001 milliseconds with 0 bytes received (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://(...)" was lost.