Problem/Motivation
Sometimes, a GuzzleHttp\Exception\ConnectException can be thrown when submitting to search engines. Example:
cURL error 35: OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.indexnow.org:443 (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://api.indexnow.org/indexnow?url=<redacted>&key=<redacted>
Steps to reproduce
Hard to reproduce, depends on the state of api.indexnow.org. This has happened on a site of mine on a couple occasions during the past month:
- Jul 27, 2022 16:20:54 CEST
- Jul 22, 2022 18:18:17 CEST
- Jul 22, 2022 16:06:50 CEST
Proposed resolution
Catch GuzzleHttp\Exception\TransferException instead.
Comments
Comment #2
dieterholvoet commentedComment #4
dieterholvoet commentedComment #5
dieterholvoet commentedComment #8
gbyteThanks.