• rowiro

    (@rowiro)


    I get on brandnew/fresh WP install with Blocksy Theme (only 2 plugins Blocksy Companion and woocommerce) the following error when attempting a search (search modal) in console (Safari).

    Error fetching search results – AbortError: Fetch is aborted
    Screenshot of error in console → https://snipboard.io/eKxzC5.jpg

    It does not seem to break search function as results eventually appear, but maybe slighty prolongs search.

    Wondering why error appears!?

    Look forward to an answer… thx.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Eduard

    (@cteduard)

    Hello @rowiro

    Do you happen to have a live URL where we could check a few things out?

    Thanks.

    Thread Starter rowiro

    (@rowiro)

    No, it still is a dev site hosted on devkinsta.
    And I just wanted to isolate it so I tested on fresh install as described earlier.
    For now, I just enqueued a js function to suppress it, which works well.
    Seems it is an expected error due to possible rapid typing but annoys me when red errors constantly appear.
    Here is what i used:

    (function () {
    const originalFetch = window.fetch;

    window.fetch = function () {
    return originalFetch.apply(this, arguments).catch((error) => {
    if (error?.name === 'AbortError') {
    // Silently ignore expected aborts (e.g. when typing fast in search)
    return new Promise(() => {}); // never resolves or rejects
    }

    // Still log real errors
    console.error('[Search Error]', error);
    throw error;
    });
    };
    })();

    Thanks for responding.

    Eduard

    (@cteduard)

    Hello @rowiro

    Just tested this scenario on a clean setup and I cannot reproduce this at all, which makes me believe it might be something limited to your exact setup.

    Please let us know once the setup becomes available somewhere online. I’ll have our developers on standby, ready to verify it.

    Thanks.

    Thread Starter rowiro

    (@rowiro)

    OK, thanks.

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

You must be logged in to reply to this topic.