slim
slim copied to clipboard
Improve client-side error handling
The interface shows for a bit and then the browser goes blank.
https://viewer.imaging.datacommons.cancer.gov/slim/studies/2.25.174442227011591161839224535127252003551/series/1.3.6.1.4.1.5962.99.1.2352175091.700331458.1655914616819.4.0
This message shows up in the developer console:
react-dom.production.min.js:189 Error: Pyramid of optical path "1" is different from reference pyramid.
at O (viewer.js:1033:17)
at new e (viewer.js:948:71)
at ke (SlideViewer.tsx:111:24)
at new n (SlideViewer.tsx:433:43)
at Ba (react-dom.production.min.js:147:172)
at Nu (react-dom.production.min.js:198:97)
at xi (react-dom.production.min.js:292:172)
at bs (react-dom.production.min.js:280:389)
at gs (react-dom.production.min.js:280:320)
at vs (react-dom.production.min.js:280:180)
Desired behavior would be at least an error message to the user and graceful handling. Even better would be to handle this kind of data (although that may not be possible if the data is invalid for some reason).