Degrade gracefully when galleries API returns 5xx (BIT-33535) #324

Merged
bug-squasher merged 1 commits from fix/BIT-33535-galleries-500-graceful-degradation into main 2026-12-04 10:14:42 +00:00
1 Commits
Author SHA1 Message Date
paula-alves 932b9db233 Degrade gracefully when galleries API returns 5xx (BIT-33535)
ci / typescript (push) Skipped
ci / rust (push) Skipped
ci / rust (pull_request) Successful in 5m30s
ci / typescript (pull_request) Successful in 11m54s
The site home page SSR fetches galleries, latest, and popular in
Promise.all. When the API has a transient Postgres outage, the
galleries endpoint returns 500 and the site rethrows it, tripping
the Error Loop reporter. Wrap non-critical fetches (galleries,
latest, popular) with a safe() helper that returns empty data on
server errors while keeping 404 -> NotFound and 500 from getSite()
as real errors.

Paperclip-Issue: BIT-33535
2026-12-04 09:59:56 +00:00