Open evdb opened 11 years ago
Have tried submitting this report to the NHS Choices team through their preferred route (web form at https://www.nhs.uk/aboutnhschoices/Pages/Feedback.aspx?iType=tech) and it has timed out twice, returned no data once. If I don't get an email autoresponse in the next hour or so I'll try to contact them via email.
Have emailed directly to Anil as well.
Now have NHS Choices Service Desk issues numbers for these reports:
150747
and/or 150748
for the preview API 500 errors150765
for the buggy submit form (timeouts if comment is too long)I think my assertion that this was only an issue on the last page of results was wrong. It appears that there might be some bad data in the results that cause the 500 error. The following urls show that it is now the penultimate page that has the errors:
GET http://v1.syndication.nhschoicespreview.nhs.uk/organisations/hospitals/commentssince/2013/9/23.atom?apikey=SECRET&page=17
200 OK
GET http://v1.syndication.nhschoicespreview.nhs.uk/organisations/hospitals/commentssince/2013/9/23.atom?apikey=SECRET&page=18
500 Internal Server Error
GET http://v1.syndication.nhschoicespreview.nhs.uk/organisations/hospitals/commentssince/2013/9/23.atom?apikey=SECRET&page=19
200 OK
GET http://v1.syndication.nhschoicespreview.nhs.uk/organisations/hospitals/commentssince/2013/9/23.atom?apikey=SECRET&page=20
404 Not Found
I think this is the same issue as #1125 describes - pages can randomly 404 at any point, and they're ok with that, so we need to make the command more robust to these - which is unfortunately going to break the nice iteration model we have at the moment.
@stevenday perhaps - but I'm seeing 500 errors instead of 404. But perhaps that is the proxy sitting in front of the production API altering the responses, which does not happen on the preview API?
There certainly seem to be a fair few problems, and the proposed solution in #1125 would make a lot of sense to minimise the effects of this here too.
In our cron scripts for vhosts using the
http://v1.syndication.nhschoicespreview.nhs.uk/
endpoint (so testing, uat) we are getting the following errors. This behaviour is not seen on the production Choices API.Manually calling the urls that this code is following reveals that the last page of results is
500
ing:Penultimate page returns
200
with this "next page" link tag:Last page is 500, this is complete error (appears to be valid XML with results, followed by an appended HTML error message):
Will contact Choices team to see if we are requesting this page incorrectly.