Error message: SyntaxError: Unexpected token P in JSON at position 0
pseudo visitorParticipant4 years, 4 months ago #8723
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 0wpsolrKeymaster4 years, 4 months ago #8724
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
– 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.1 year, 8 months ago #27356
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-01 year, 8 months ago #27357
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.1 year, 8 months ago #27359
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.
You must be logged in to reply to this topic.