griffithlab / civic-client

Web client for CIViC: Clinical Interpretations of Variants in Cancer
MIT License
50 stars 28 forks source link

advanced search generating internal server errors when looking for empty fields #1590

Closed lsheta closed 3 years ago

lsheta commented 3 years ago

I've noticed that several searches generate this error message when I search for empty fields: {"data":{"status":500,"error":"Internal Server Error"},"status":500,"config":{"method":"POST","transformRequest":[null],"transformResponse":[null],"jsonpCallbackParam":"callback","cache":false,"cancellable":true,"data":{"operator":"AND","queries":[{"field":"representative_transcript","condition":{"name":"is_empty","parameters":[]}}],"entity":"variants","save":true,"gridView":true},"url":"/api/variants/search/","headers":{"Accept":"application/json, text/plain, */*","Civic-Web-Client-Version":"0.0.6","Content-Type":"application/json;charset=utf-8"},"cached":false},"statusText":"Internal Server Error","xhrStatus":"complete"

A few sample searches: Variants with empty CHR1 Chromosome Evidence with empty DOID

The error may not only appear for empty field searches, but that's where I've run into it.

susannasiebert commented 3 years ago

I assume this is related to #1589 and would be resolved by the PR I have open. Basically any search right now that returns functional evidence items will result in the error you’re seeing.

susannasiebert commented 3 years ago

I think the new staging deploy fixes this issue. @lsheta can you give it a try and confirm?

lsheta commented 3 years ago

@susannasiebert I tried all the searches where I had noticed the error and they seem to work now. Thank you!