Skip to content

Commit

Permalink
Fix also howto
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiara Rasi committed Jan 24, 2025
1 parent 38046a1 commit 50da544
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 50da544

Please sign in to comment.