Closed madysonic closed 1 week ago
I've also added a while loop to get_gene_transcript_data()
with a time sleep function that waits and retries a certain number of times (adjustable) if the request times out. The time between retries increases exponentially to increase likelihood of success. This seems to work reliably but may require further testing/adjustment later down the line.
Currently, an exception is raised for API response status but no other error handling exists.
Common issue seems to be "429" - Too Many Requests which just requires waiting and trying again.
Also need to add logging and tests.