Issue 848: Show a better error message if check for Panorama server fails

issues
Status:open
Assigned To:Vagisha Sharma
Type:Defect
Area:Skyline
Priority:1
Milestone:23.1
Opened:2021-11-29 14:27 by Vagisha Sharma
Changed:2022-11-01 16:12 by Vagisha Sharma
Resolved:
Resolution:
Closed:
2021-11-29 14:27 Vagisha Sharma
Title»Show a better error message if check for Panorama server fails
Assigned To»Vagisha Sharma
Type»Defect
Area»Skyline
Priority»3
Milestone»22.1
We ping LabKey's AdminController.HealthCheckAction to determine if the Panorama server URL entered by the user is for a LabKey Server. We expect to see this JSON if the call succeeds:
{
  "healthy" : true
}

If this check fails, include the test URL and the response text in the error message.

Brendan reported that this check was failing for Regeneron's LabKey server even though they did not have any issues interacting with the server directly. Having the additional information in the error message reported in Skyline would have helped them contact LabKey directly.

2022-11-01 16:12 Vagisha Sharma
Notify»Brendan MacLean
Priority3»1
Milestone22.1»23.1
WebExceptions caused by anything other than 404 (Not found), 401 (Unauthorized) result in an unhelpful error message: "Unknown error connecting to the server". The exception message and URL should be included in the error reported to the user.