Skip to content

sig_generate: listfilteredmutations should raise error if API query fails #15

@gordonkoehn

Description

@gordonkoehn

This function does not properly implement Exceptions, but prints to the console:

(not using access keys on API https://lapis.cov-spectrum.org/open/v2)
Error from server: {
  "error": {
    "type": "about:blank",
    "title": "Bad request",
    "status": 400,
    "detail": "Error from SILO: The lineage 'BA.5* | nextcladePangoLineage:BA.5*' is not a valid lineage for column 'nextcladePangoLineage'."
  },
  "info": {
    "dataVersion": null,
    "requestId": "c58424fb-2152-4aaf-97f3-157ee51bcd57",
    "requestInfo": "sars_cov-2_nextstrain_open on lapis.cov-spectrum.org at 2025-04-17T12:35:10.523943395",
    "reportTo": "Please report to https://github.com/GenSpectrum/LAPIS/issues in case you encounter any unexpected issues. Please include the request ID and the requestInfo in your report.",
    "lapisVersion": "0.4.2",
    "siloVersion": "0.5.8"
  }
}

This issue is only important should we decide to use CoJac for querying CovSpectrum.

If this remains a script utility it is perfectly fine as is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions