Skip to content

ERROR 500 downloading large number of analysis results #188

Description

@snayfach

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions