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

  • pseudo visitor
    Participant
    # 10 months, 2 weeks ago

    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
    # 10 months, 2 weeks ago

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

    wpsolr
    Keymaster
    # 10 months, 2 weeks ago

    What worked, compared to your current configuration?

    pseudo visitor
    Participant
    # 10 months, 2 weeks ago

    We have another testing site.
    It worked there.

    wpsolr
    Keymaster
    # 10 months, 2 weeks ago

    What is the difference ?

    pseudo visitor
    Participant
    # 10 months, 2 weeks ago

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

    wpsolr
    Keymaster
    # 10 months, 2 weeks ago

    Same content too?

    pseudo visitor
    Participant
    # 10 months, 2 weeks ago

    Different content.

    wpsolr
    Keymaster
    # 10 months, 2 weeks ago

    Language is different?

    pseudo visitor
    Participant
    # 10 months, 2 weeks ago

    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
    # 10 months, 2 weeks ago

    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
    # 10 months, 2 weeks ago

    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
    # 10 months, 2 weeks ago

    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.