Skip to content

Enterprise Terms page is giving a 404 error code #118

Description

@matej-marcisovsky

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 🙂

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions