Open stolpeo opened 2 months ago
There might be other error responses as well not responding in JSON format.
Additionally, reev-frontend-lib seems to expect a 404 in this case, according to the tests. So probably also the return code is not correct.
Describe the bug In case a query for an HPO term fails because it can't be found, an 500 error message is issued with a string describing the error. However downstream tools like reev-frontend-lib have issues processing the error response because the response data is expected to be in json format.
https://github.com/varfish-org/viguno/blob/c6a8213f31b2c86aa1bebd2547d5fd4751af9c63/src/server/run/hpo_terms.rs#L277
To Reproduce