Describe the issue:
Every once in a while pages are empty in our site both in content preview and production environment. Build process has no logs of error messages, we simply get an empty page where thereā s nothing in the body because GraphQL returned content:[]
The latest scenario we experienced for this was for a specific page that has two locales: de-AT and de-DE. The de-DE
locale showed perfectly, while the āde-ATā locale was blank. When inspecting the page-data.json
stored in our s3 bucket, we saw that the GraphQL query returned content:[]
Forcing a chance on the model (slug change) and building for prod, then undoing the change, and leaving original slug, finally rendered the content. But this doesnāt help us understand why there was an content:[]
to begin with?
(Optional) Do you have any sample code you can provide?
None, since it happens randomly for different pages, and randomly in either prod or content-preview.
Could you help us with this? Itās very frustrating since we canāt seem to pinpoint where the error is happening.