esgf2-us / metagrid

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

White Screen of Death #536

Open sashakames opened 1 year ago

sashakames commented 1 year ago

This seems to happen when first attempting a CMIP6 search using the "fedtest" index at LLNL

Everything goes white. Guess that the backend feeds something the json parser can't handle and causes the crash.

Maybe this has some good info. I captured it in case you are blocked by Medium

https://medium.com/wix-engineering/white-screen-of-death-how-to-handle-errors-in-react-native-4d57ac82b6d8

We narrowed down the case to not checking particular fields in the search result from a bad publication. For testing we will need a broken mock search record, but I think it might be realistic that someone publishes a mistake to production.

sashakames commented 10 months ago

@sturoscy-personal You once found a solution to this issue with search, was that fix committed to a branch somewhere? if so, great to merge in our latest changes or rebase. We can reproduce this:

sashakames commented 9 months ago

Also CMIP6 search produces the WSOD as shown on esgf-dev1 (configured with esgf-fedtest).