Error - click to retry when trying to publish content plus unable to preview document

Two issues, that might related.

First. when publishing a new document from the content editor I get an Error.

Screenshot 2022-07-22 at 10.58.20
and that returns a 500. but then somehow it gets published.

Now, when on development trying to preview a document it works fine while is not published, but when published and click preview, the API returns a 404 that the document isn't found.

I would assume this is an internal issue on your product and given that the publishing gives a 500 not all the needed task are executed therefore causing a 404 return.

error - PrismicError: No documents were returned on click preview on published document.

Managed to get fixed by deleting the repository and create it again, but this is good that you acknowledge this issue and find a fix for future users.

1 Like

Hi @alw3ys,

Welcome to the Prismic community,

Thanks for letting us know. please let us know if you face the same problem again.

Got the same issue here, I have to delete and recreate the repo.

Ok, thanks @alexandreguedj for letting us know.