You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
CustomError::new(anyhow::anyhow!("Term ID {} not found in HPO", term_id))
To Reproduce
$ curl -i http://localhost:8000/proxy/varfish/viguno/hpo/terms?term_id=HP%3A2134567HTTP/1.1 500 Internal Server ErrorServer: WSGIServer/0.2 CPython/3.10.12content-type: text/plain; charset=utf-8date: Fri, 19 Jul 2024 08:44:24 GMTServer-Timing: TimerPanel_utime;dur=15.056000000015501;desc="User CPU time", TimerPanel_stime;dur=0.0;desc="System CPU time", TimerPanel_total;dur=15.056000000015501;desc="Total CPU time", TimerPanel_total_time;dur=15.667679952457547;desc="Elapsed time", SQLPanel_sql_time;dur=0;desc="SQL 0 queries", CachePanel_total_time;dur=0;desc="Cache 0 Calls"X-Frame-Options: DENYContent-Length: 35Vary: CookieX-Content-Type-Options: nosniffReferrer-Policy: same-originTerm ID HP:2134567 not found in HPO # SHOULD BE JSON FORMAT
The text was updated successfully, but these errors were encountered:
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.
viguno/src/server/run/hpo_terms.rs
Line 277 in c6a8213
To Reproduce
The text was updated successfully, but these errors were encountered: