biothings / mygene.info

MyGene.info: A BioThings API for gene annotations
http://mygene.info
Other
115 stars 20 forks source link

Edge Case Error Reporting Improvement #97

Closed namespacestd0 closed 3 years ago

namespacestd0 commented 3 years ago

The following command would cause a TransportError(N/A, 'search_phase_execution_exception') which could appear as a 504 Gateway Time-out.

curl --location --request POST 'http://mygene.info/v3/gene?fields=5-HT1A&species=drosophila' \
--form 'ids="string"'
namespacestd0 commented 3 years ago

Fixed a while ago. Additional improvement can be found at and further contributed to: https://github.com/biothings/biothings.api/blob/a4642e84c6d389bb863d4c2c4918baacd105477b/biothings/web/handlers/query.py#L172