topcoder-platform / community-app

React webapp for serving Topcoder Community
125 stars 214 forks source link

Contentful down causes Community App to crash #6862

Closed jmgasper closed 1 year ago

jmgasper commented 1 year ago

REF: https://topcoder.atlassian.net/browse/PROD-3773 REF: https://topcoder.atlassian.net/browse/PROD-3810

Bug

We have seen a few cases recently where the 3rd party Contentful API we use for pages like Thrive has gone down. This normally shouldn't be a big deal, other than Thrive not working, but it's caused Community App itself to crash, including profile pages, challenge list, challenge details, submission pages, etc..., none of which rely on Contentful

Fix

We need to wrap all our Contentful calls in Community App with some error handling to ensure that if Contentful goes down and is inaccessible Community App's other pages still remain up and working.

Logs

Attached are logs from recent outages

Log 1

log-events-viewer-result (2).csv

Additional logs

log-events-Inc22-start.csv log-events-Inc22-ending.csv log-events-viewer-result (2).csv