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

SRR7130925 doesn't match regex pattern #8

Open
olgabot opened this issue Nov 5, 2018 · 1 comment
Open

SRR7130925 doesn't match regex pattern #8

olgabot opened this issue Nov 5, 2018 · 1 comment

Comments

@olgabot
Copy link

olgabot commented Nov 5, 2018

Hello! I tried out the wort API to download this paper's data, which has a bioproject and SRR id (SRR7130925).

Searching for SRR7130925 at the wort api (https://wort.oxli.org/v1/ui/#!/default/wort_blueprints_compute_views_compute_sra) results in this invalid pattern error:

{
  "detail": "'SRR7130925' does not match '^\\\\w{3}\\\\d{6}$'\n\nFailed validating 'pattern' in schema:\n    {'description': 'SRA ID for a dataset',\n     'in': 'path',\n     'name': 'sra_id',\n     'pattern': '^\\\\w{3}\\\\d{6}$',\n     'type': 'string'}\n\nOn instance:\n    'SRR7130925'",
  "status": 400,
  "title": "Bad Request",
  "type": "about:blank"
}

SRR7130925 is \w{3}\d{7} rather than \w{3}\d{6} as in the error message.

@luizirber
Copy link
Member

Hmm, that explains why I was missing some datasets... I'm trying to find where I saw that the format was with 6 numbers, but can't find the ref.

Fixed in master, deployed to wort.oxli.org

(note that it wouldn't work because the auth token is missing, I need to encode that better in the API docs... If you try again it says 'unauthorized' now)

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

2 participants