Matěj Marčišovský [8:42 PM]
The /enterprise-terms page was stale, so Next tried to refresh it from Strapi Cloud. Strapi returned HTTP 504 (HTML error page titled 502) instead of a JSON API response — likely a Strapi Cloud outage, nothing in Strapi Cloud logs.
Right now we treat 5xx as “no data”, so the refresh called notFound() and the page got cached as 404. It self-heals after the ISR TTL (~4h) or a manual revalidate (what you did).
Quick fix: fail the render on 5xx so ISR keeps the last good page in cache, then picks up a fresh version once the API is back. I can fix that if you want.
Marco [9:28 AM]
Thanks for the explanation @Matěj Marčišovský
Quick fix: fail the render on 5xx so ISR keeps the last good page in cache, then picks up a fresh version once the API is back. I can fix that if you want.Sounds good to me, let’s proceed with this fix 🙂
Matěj Marčišovský [8:42 PM]
The /enterprise-terms page was stale, so Next tried to refresh it from Strapi Cloud. Strapi returned HTTP 504 (HTML error page titled 502) instead of a JSON API response — likely a Strapi Cloud outage, nothing in Strapi Cloud logs.
Right now we treat 5xx as “no data”, so the refresh called notFound() and the page got cached as 404. It self-heals after the ISR TTL (~4h) or a manual revalidate (what you did).
Quick fix: fail the render on 5xx so ISR keeps the last good page in cache, then picks up a fresh version once the API is back. I can fix that if you want.
Marco [9:28 AM]
Thanks for the explanation @Matěj Marčišovský
Quick fix: fail the render on 5xx so ISR keeps the last good page in cache, then picks up a fresh version once the API is back. I can fix that if you want.Sounds good to me, let’s proceed with this fix 🙂