Error message: SyntaxError: Unexpected token P in JSON at position 0
- pseudo visitorParticipant5 years, 9 months ago #8723
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
wpsolrKeymaster5 years, 9 months ago #8724Hi,
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 procedureAlso check your Solr/Elasticsearch logs.
interactiveknowledgeParticipant3 years, 1 month ago #27356I’m having this same issue.
I followed the steps above and the error I”m getting from Solr isException 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-0interactiveknowledgeParticipant3 years, 1 month ago #27357Ok 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.
interactiveknowledgeParticipant3 years, 1 month ago #27359Well, 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.