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

ERROR 500 downloading large number of analysis results #188

Open
snayfach opened this issue Jun 8, 2024 · 0 comments
Open

ERROR 500 downloading large number of analysis results #188

snayfach opened this issue Jun 8, 2024 · 0 comments

Comments

@snayfach
Copy link

snayfach commented Jun 8, 2024

My goal is to get a complete listing of analyses for accession=408169.

I was previously using these commands:

wget "https://www.ebi.ac.uk/ena/portal/api/links/taxon?accession=408169&result=analysis&download=true&subtree=true&offset=0"
wget "https://www.ebi.ac.uk/ena/portal/api/links/taxon?accession=408169&result=analysis&download=true&subtree=true&offset=100000"
wget "https://www.ebi.ac.uk/ena/portal/api/links/taxon?accession=408169&result=analysis&download=true&subtree=true&offset=200000"

But I get the error:

Resolving www.ebi.ac.uk (www.ebi.ac.uk)... 193.62.193.80
Connecting to www.ebi.ac.uk (www.ebi.ac.uk)|193.62.193.80|:443... connected.
HTTP request sent, awaiting response... 500 
2024-06-08 18:15:19 ERROR 500: (no description).

I'm able to download a small list of accessions by adding limit=10000:

wget "https://www.ebi.ac.uk/ena/portal/api/links/taxon?accession=408169&result=analysis&download=true&subtree=true&offset=0&limit=10000" -O test

But this fails when I increase the offset:

wget "https://www.ebi.ac.uk/ena/portal/api/links/taxon?accession=408169&result=analysis&download=true&subtree=true&offset=10000&limit=10000"

Resolving www.ebi.ac.uk (www.ebi.ac.uk)... 193.62.193.80
Connecting to www.ebi.ac.uk (www.ebi.ac.uk)|193.62.193.80|:443... connected.
HTTP request sent, awaiting response... 400 
2024-06-08 18:48:26 ERROR 400: (no description).
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