ncats / bard

Sources for the BioAssay Research Database
Other
10 stars 2 forks source link

REST API throws NullPointerException trying to access an experiment with a nonexistent ID #48

Closed jerilevine closed 11 years ago

jerilevine commented 11 years ago

Found this by accident when I had a typo putting in an experiment ID. Try this request:

http://bard.nih.gov/api/v13/experiments/13339

Server returns error code 500 and says it's thrown a NullPointerException.

Requests for nonexistent assays, compounds, substances, and projects all return 404 -- this one probably should as well.

Also, a similar request for exptdata with an invalid ID returns a 500 error code, with no details. I can enter that as a separate ticket, if that's better.

rajarshi commented 11 years ago

v13 is now updated to return the proper content or 404 if not found

jerilevine commented 11 years ago

Thanks!