epimorphics / hmlr-linked-data

A central coordination point for all of the HMLR open linked-data applications
0 stars 0 forks source link

500 Internal service error on previously-working UKHPI URL #55

Open ijdickinson opened 2 years ago

ijdickinson commented 2 years ago

Dave Lockett reports that a customer is trying to access this URL but "receiving no results".

When I tried the link, I got a 500 intenal server error. What's a bit concerning is that I can't see a corresponding Sentry report.

ijdickinson commented 2 years ago

Update: customer is requesting an old (no longer present) GSS code.

This was the update I sent to DaveL:

Thanks for reporting this. I can see what's going on. There are two levels of problem here: your customer is attempting a comparison of the following locations: E07000153 Kettering E07000150 Corby E07000152 East Northamptonshire

Following the changes in Northamptonshire in April, which as you know are now reflected in the UKHPI data, E07000153 and E07000152 are no longer active GSS codes. There isn't data for those locations any more. Your customer will need to create a new comparison using locations that are currently available in UKHPI.

When the app detects an incorrect location, it should be reporting a clear explanation and diagnosis to the user. This isn't happening. Instead, the user only sees a cryptic "500 server error" message. This is clearly a bug, and we'll look at fixing it. However, even when that is fixed, the underlying problem will still remain. UKHPI doesn't have any Kettering data any more, so the best we can manage will be to try to tell the user that as clearly as possible.

The bugs for us to fix are now:

ijdickinson commented 2 years ago

Updated framing for this ticket:

Fix description

When I am comparing locations in UKHPI And I am using a bookmarked URL that I've have used successfully before And it is the case that one or more location codes in the URL are no-longer valid Then I should see a usefully explanatory error message to explain that my locations are invalid

Business justification

Customer reported problem on supported application

Definition of done

Example path

/compare?in=hpi&location[]=E07000153&location[]=E07000150&location[]=E07000152&st=all

Location GSS codes ...153 and ...152 are not valid, and no data exists for them in UKHPI.

Development tasks

Estimate 2 days