ourresearch / oadoi

The backend code that powers Unpaywall. support@unpaywall.org
http://unpaywall.org
MIT License
311 stars 37 forks source link

Internal server error when queried with unknown DOI #52

Closed stefan-kolb closed 6 years ago

stefan-kolb commented 6 years ago

When I execute the following request an internal server error 500 occurs:

https://api.oadoi.org/v2/10.1186/unknown-doi?email=developers@jabref.org

Instead I would expect an empty response or a status code of 404 not found.

hpiwowar commented 6 years ago

Good catch! Added the bug yesterday, but now fixed :) Thanks! Heather