Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BTE receiving HTTP 400 from some BioThings APIs #856

Open
tokebe opened this issue Aug 26, 2024 · 0 comments
Open

BTE receiving HTTP 400 from some BioThings APIs #856

tokebe opened this issue Aug 26, 2024 · 0 comments

Comments

@tokebe
Copy link
Member

tokebe commented Aug 26, 2024

Over the weekend, it appears BTE may have misconfigured some queries to various BioThings APIs. Below are some examples (I'm pulling directly from Sentry, so queries are probably not formatted perfectly for directly pasting into curl/etc.):

TTD

expand

query details:

https://biothings.ci.transltr.io/ttd/query [400]
{
http.method: POST,
http.query: fields=subject.ttd_drug_id,+subject.name,+object.name&filter=_exists_:subject.ttd_drug_id+AND+(NOT+_exists_:subject.pubchem_compound)+AND++_exists_:object.mondo+AND+association.predicate:%22biolink:treats%22+AND+NOT++(association.clinical_trial.status:approved+OR+association.clinical_trial.status:%22phase+4%22+OR++association.clinical_trial.status:%22approved+(orphan+drug)%22+OR+association.clinical_trial.status:%22NDA+filed%22+OR++association.clinical_trial.status:investigative+OR+association.clinical_trial.status:patented+OR++association.clinical_trial.status:%22discontinued+in+preregistration%22+OR+association.clinical_trial.status:preregistration+OR++association.clinical_trial.status:%22withdrawn+from+market%22+OR+association.clinical_trial.status:preclinical)&size=1000
}

response:

{"code":400,"success":false,"error":"parse_exception","root_cuase_line_00":"request body or source parameter is required"}

Text Mining Targeted Association

expand

query details:

https://biothings.ci.transltr.io/text_mining_targeted_association/query [400]
{
http.method: POST,
http.query: fields=subject.DRUGBANK,association.edge_attributes,association.sources&filter=_exists_:subject.DRUGBANK+AND+association.edge_label:treats_or_applied_or_studied_to_treat+AND+_exists_:object.MONDO&size=1000
}

response:

{"code":400,"success":false,"error":"parse_exception","root_cuase_line_00":"request body or source parameter is required"}

It appears in both of these cases BTE is failing to send a request body -- this is more likely a problem with BTE's subquery generation than the annotations.

@biothings biothings deleted a comment Aug 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant