iryonetwork / wwm

Iryo's pilot project for refugee camps
7 stars 3 forks source link

Staging clinic frontend error "Failed to fetch health records" #207

Closed mateuszkrasucki closed 5 years ago

mateuszkrasucki commented 6 years ago

"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).

  1. 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.
  2. 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
mateuszkrasucki commented 5 years ago

The issue causing this particular error was fixed with https://github.com/iryonetwork/wwm/pull/208