Error message: SyntaxError: Unexpected token P in JSON at position 0

  • pseudo visitor
    Participant
    # 2 years, 9 months ago

    Hi,

    I need to index some additional ACF fields and I am trying to test this on our staging server but I am unable to complete this as the attached error is generated.

    An error or timeout occured. 
    
    Error code: parsererror
    
    Error message: SyntaxError: Unexpected token P in JSON at position 0
    wpsolr
    Keymaster
    # 2 years, 9 months ago

    Hi,

    Ok.

    Procedure to find and discard the post(s) with an indexing issue:
    – set batch size “1”
    – Set debug mode “on”
    – Synchronize until it stops on error
    – Stop
    – Synchronize again (to see only the post id in error in debug message)
    – edit the post, mark it as “not searchable” in the WPSOLR post metabox
    – do again the whole procedure

    Also check your Solr/Elasticsearch logs.

    # 2 months ago

    I’m having this same issue.
    I followed the steps above and the error I”m getting from Solr is Exception writing document id 126 to the index; possible analysis error. which isn’t super helpful. When I mark one unsearchable, the next one shows up. I also tried indexing different post types to see if it was specific to one type and it happens on the first item every time, just the document ID changes. So I don’t think it’s content-specific.

    WPSOLR PRO 22.0
    OpenSolr v 7 – US-EAST-SOLR-7-0

    # 2 months ago

    Ok I will note that deleting the index, recreating a new one and indexing again worked. But that’s not really great for a long-term solution.

    wpsolr
    Keymaster
    # 2 months ago

    The error “Exception writing document id 126 to the index; possible analysis error” looks like the Solr index was not created with the WPSOLR schema.xml file.

    # 2 months ago

    Well, some additional information the index was created with WPSOLR and indexed fine the first time. In about a week it stopped indexing and started getting this error.

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

You must be logged in to reply to this topic.