WP CLI re-indexing randomly throws Impossible to connect error.
-
Hello there!
During the WP CLI reindexing we started quite often see this error:
Impossible to connect, please check your Algolia Application Id.
It happens quite randomly and we weren’t able to find any related error logs (on our and Algolia sides, there is no any rate limit set). I did some debbuging to better understand what’s happening…
Here is example request array:
[“requests”]=> array(1) {
[0]=> array(2) {
[“action”]=> string(12) “deleteObject”
[“body”]=> array(1) { [“objectID”]=> string(6) “1495-0”
}
}
And here is itscurl_getinfo()output, further indexing gets crashed because of zero http_code:
array(26) {
[“url”]=> string(76) https://######.algolianet.com/1/indexes/live_en_searchable_posts/batch
[“content_type”]=> NULL
[“http_code”]=> int(0)
[“header_size”]=> int(0)
[“request_size”]=> int(0)
[“filetime”]=> int(-1)
[“ssl_verify_result”]=> int(0)
[“redirect_count”]=> int(0)
[“total_time”]=> float(1.999032)
[“namelookup_time”]=> float(0)
[“connect_time”]=> float(0)
[“pretransfer_time”]=> float(0)
[“size_upload”]=> float(0)
[“size_download”]=> float(0)
[“speed_download”]=> float(0)
[“speed_upload”]=> float(0)
[“download_content_length”]=> float(-1)
[“upload_content_length”]=> float(-1)
[“starttransfer_time”]=> float(0)
[“redirect_time”]=> float(0)
[“redirect_url”]=> string(0) “”
[“primary_ip”]=> string(0) “”
[“certinfo”]=> array(0) { }
[“primary_port”]=> int(0)
[“local_ip”]=> string(0) “”
[“local_port”]=> int(0)
}
Any suggestions? – Thanks!
P.S.
There are no any Algolia Infrastructure Issues shown in Dashboard during we face the issue.
The topic ‘WP CLI re-indexing randomly throws Impossible to connect error.’ is closed to new replies.