esgf2-us / metagrid

ESGF Search UI
https://metagrid.readthedocs.io/en/latest/
MIT License
16 stars 6 forks source link

White screen appears if search backend proxy is misconfigured #595

Open sashakames opened 9 months ago

sashakames commented 9 months ago

We had an incident at ORNL where the /proxy routes for the backend disappeared. This caused the frontend callout to the search endpoint to "feedback on itself" because the route was going back to the fronted but with a 404 handled by React. API calls should be tested to ensure they are receiving a properly structured response. Better yet, we should have a test to ensure that the error handler works.