Skip to content

Error exporting datasets with "Unspecified" organsm_type in Anvil Explorer #4579

@NoopDog

Description

@NoopDog

Overview

Anvil Data Explorer is unable to export to terra any datasets that do not specify the "Organism Type".

https://explore.anvilproject.org/datasets?filter=%5B%7B%22categoryKey%22%3A%22donors.organism_type%22%2C%22value%22%3A%5Bnull%5D%7D%2C%7B%22categoryKey%22%3A%22datasets.consent_group%22%2C%22value%22%3A%5B%22NRES%22%5D%7D%5D

It looks like the explorer send a request to export wtih the values like

{
  "datasets.dataset_id": {
    "is": [
      "c84917f5-df6d-6be2-94fe-9e178839220e"
    ]
  },
  "donors.organism_type": {
    "is": []
  },
  "files.file_format": {
    "is": [
      ".svs",
      ".txt.gz",
      ".txt",
      "Other",
      ".tar.gz",
      ".csv",
      ".tar",
      ".tsv"
    ]
  }
}

and

donors.organism_type": {
    "is": []

is causing Azul to respond with a 400 Bad Request.

Explorere then infinately retries wtih no delay however.

  1. Bad requests should not be retired
  2. If we do retry we should follow the retry after delay.
  3. We should limit the number of times we retry.

Lets take a look at the initial bug (sending []) and see when this broke and then once that is fixed lets address the otehr errors in follow on tickets.

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