sul-dlss / SearchWorks

SearchWorks (Stanford University Libraries)
http://searchworks.stanford.edu
Other
48 stars 10 forks source link

Missing records in Articles give 500 error rather than 404 ?? #2120

Closed jvine closed 5 years ago

jvine commented 5 years ago

https://searchworks.stanford.edu/articles/edsgao__edsgcl.151592087 https://searchworks.stanford.edu/articles/eric__EJ739770

These articles appear to have been removed from the Ebsco database. They give this error:

screen shot 2018-11-07 at 10 06 49 am

When I would have expected this:

screen shot 2018-11-07 at 10 07 00 am
jkeck commented 5 years ago

Both of the URLs linked are giving that error because they are returning a 500. There is a fix that will be released soon to address that. (currently deployed to stage)

It looks like Not found records are actually throwing a BadRequest error from the API, which we simply send back to the Articles+ home page w/ a not super helpful message: https://searchworks.stanford.edu/articles/blah__12345