Elasticsearch Error message: SyntaxError: Unexpected token * in JSON at position

  • pseudo visitor
    Participant
    5 years, 4 months ago #8833

    Hi Patrice,

    As disccussed, currently we are moving from Solr to Elasticsearch, and once we try to index, we get the following error for every single listing, we have about 135,000:

    An error or timeout occured.
    Error code: parsererror
    Error message: SyntaxError: Unexpected token * in JSON at position 0
    wpsolr
    Keymaster
    pseudo visitor
    Participant
    5 years, 4 months ago #8835

    No, we are using Elasticsearch 5.4 hosted locally in https://www.cloudways.com/en/.
    We tested same configurations, and it worked.

    wpsolr
    Keymaster
    5 years, 4 months ago #8836

    What worked, compared to your current configuration?

    pseudo visitor
    Participant
    5 years, 4 months ago #8837

    We have another testing site.
    It worked there.

    wpsolr
    Keymaster
    5 years, 4 months ago #8838

    What is the difference ?

    pseudo visitor
    Participant
    5 years, 4 months ago #8840

    Nothing that’s why we don’t know why we getting this problem.

    wpsolr
    Keymaster
    5 years, 4 months ago #8841

    Same content too?

    pseudo visitor
    Participant
    5 years, 4 months ago #8842

    Different content.

    wpsolr
    Keymaster
    5 years, 4 months ago #8843

    Language is different?

    pseudo visitor
    Participant
    5 years, 4 months ago #8844

    There are two language we tested both. On testing site and they are working.
    On real site only English is working but Arabic showing this problem.

    wpsolr
    Keymaster
    5 years, 4 months ago #8845

    Can you copy exactly one of your prod post to dev, and publish it. Check the WPSOLR notice (success, or error message).

    pseudo visitor
    Participant
    5 years, 4 months ago #8846

    OK, I will test it , but with such issue, it seems it is the same for all listings in Arabic language, because when I put to index 500 at same time, still all error comes for all 500.

    wpsolr
    Keymaster
    5 years, 4 months ago #8847

    The 500 are rejected if only one fails.

    Try to index with batch size “1”.

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in to reply to this topic.