Closed redbassett closed 9 years ago
oh my god
This one is Not My Fault, the error is because the OpenLibrary API request for this ISBN is returning {}
. See https://openlibrary.org/api/books?bibkeys=ISBN:1484206363&format=json&jscmd=data.
We should probably make a better error response, though. But this book appears to be the Null Book.
(with that said there should be validation of OpenLibrary response JSON wads but whatever, I like closing issues)
As of a2cf652 Book.fromJson()
is now in the Try[T]
monad, so if we get an unparseable response object back from OpenLibrary, we should return an HTTP error code with a useable error message rather than attempting to serialise an entire Scalate error page as JSON.
1484206363