• Resolved kov09

    (@kov09)


    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 its curl_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.

    • This topic was modified 3 years, 2 months ago by kov09.
    • This topic was modified 3 years, 2 months ago by kov09.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Thread Starter kov09

    (@kov09)

    Same error happens during re-indexation from the panel.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hi,

    We were replying at the same time!

    From the looks of things, this error is coming from the Algolia PHP library that we have bundled to help with connecting everything. For whatever reason it’s not managing to resolve any of the host attempts.

    I know we had some similar issues for some people connecting with a local install using the plugin. Are you trying from a local/development install? Also what version of PHP are you running, if you know?

    Thread Starter kov09

    (@kov09)

    Hey!

    Site uses PHP 8.0.14. We try to re-index from live, issue happens quite randomly… And we can successfully finish re-indexation from second or third try.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Anything in PHP error logs that you can identify?

    Thread Starter kov09

    (@kov09)

    Nope, log is clear, no any related errors…

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hrm. Just checking on that last part.

    The biggest thing here is that it’s very much their side failing sometimes…not every time. The requests are definitely being issued to the API

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any new developments here on your side?

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘WP CLI re-indexing randomly throws Impossible to connect error.’ is closed to new replies.