Corrupted document breaking search query

I using the search api to get a list of document

Then I catch an error of
Error: Parse error on line 1:
Expecting ‘,’, ‘]’

I think there is some document on prismic broken after import then prevent us to retrieve the list of document, as the api response ok when I just get first 50 documents instead of first 100.

Can any technical support help me to fix? It quite urgent and affecting our business. It now stopping our website from getting document on prismic.

Hi Roy,

I’m sorry to see you facing this issue.

I did some investigation in your api browser and it seems to be this document which is cause the error:

If you view the JSON version it causes an error

Try archiving this to see if that helps.


1 Like

It work. Thanks a lot for your help!

You’re very welcome. Have a nice day :grin: