From 50da5444d1ffa8cc2e9096558a66c13a83cc3b40 Mon Sep 17 00:00:00 2001 From: Chiara Rasi Date: Fri, 24 Jan 2025 14:17:09 +0100 Subject: [PATCH] Fix also howto --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 35537b4..31c8002 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,22 @@ Once having set up an instance of Schug, you can use the following endpoints: Usage: `curl -X 'GET' 'http://0.0.0.0:8000/exons/ensembl_exons/?build=38' > exons_GRCh38.txt` +## Issues While Downloading Genes, Transcripts, or Exons + +You might encounter errors while downloading genes, transcripts, or exons, such as the following error: + +``` +httpx.RemoteProtocolError: peer closed connection without sending complete message body (incomplete chunked read) +``` + +This error often occurs when the external service prematurely closes the connection during data streaming. To address this issue, you can try increasing the `max_tries` parameter in your request, which otherwise defaults to 5. Increasing the number of retries can help handle intermittent network issues or temporary interruptions from the service. + +Here’s an example of how to modify the request: + +``` +curl -X 'GET' 'http://0.0.0.0:8000/exons/ensembl_exons/?build=37&max_retries=10' > exons_GRCh37.txt` +``` + ## What is left to do? The basic structure is outlined and implemented, however there are many details left to implement before