"Failed to fetch health records" on staging clinic frontend was encountered by @PeterKuralt.
Brief investigation indicates that error occurred due to storage receiving calls to fetch files with invalid patient ID (undefined).
Additional investigation into reasons for occurrance of this error needs to conducted. Potentially the reason was failing discovery service. Unfortunately it's hard to determine as discovery service logs contain only log of SQL statements executed.
[ ] Logging for discovery service should be expanded to contain at least API calls information.
[ ] Full possible logs should be enabled on staging and discovery service monitored.
In case of failure to determine patientID frontend should be able to determine and display correct error instead of trying to fetch files from storage with incorrect patient ID.
[ ] Fix frontend not to make calls to storage if the patientID is undefined
"Failed to fetch health records" on staging clinic frontend was encountered by @PeterKuralt. Brief investigation indicates that error occurred due to storage receiving calls to fetch files with invalid patient ID (undefined).
Additional investigation into reasons for occurrance of this error needs to conducted. Potentially the reason was failing discovery service. Unfortunately it's hard to determine as discovery service logs contain only log of SQL statements executed.
In case of failure to determine patientID frontend should be able to determine and display correct error instead of trying to fetch files from storage with incorrect patient ID.