-
Notifications
You must be signed in to change notification settings - Fork 50
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
Nextstrain.org/fetch broke sometime between yesterday and today #461
Comments
Server logs show a HEAD request to the given S3 signed URL failing with a 403. This is expected for signed URLs because they dictate the permitted S3 action and the same URL can't support both a HEAD ( I think I have a fix (overriding |
In case it's useful, here's a long-lived (7 days) pre-signed URL from an S3 bucket of ours, object is the same data as https://data.nextstrain.org/zika.json
|
This fixes a key use case of /fetch where AWS S3 signed URLs are given. These signed URLs dictate the permitted S3 action, and the same URL can't support both a HEAD (headObject) and GET (getObject) request. Prior to the merge and deploy of #443 this morning, the /fetch endpoints by design didn't guard Auspice's entrypoint with a HEAD request for the dataset to check existence. This inadvertently changed in "Refactor endpoints for GETing a dataset/narrative to make room for additional media types" (86190b7). Now once again for /fetch we'll always serve up Auspice, which will make a request to Charon, which may return an error if the upstream request fails, and an error from Charon will trigger Auspice's error page. That's unlike everywhere else where we try to avoid Auspice's error page, but it's ok. Resolves #461.
@vincent-czi Thanks! I'd already generated a signed URL for testing, using that same zika dataset. :-) PR with fix is #462. |
Current Behavior
We use long, AWS pre-signed URLs with nextstrain.org/fetch.
These were working as of Tuesday 1/31 at ~2pm PST, but then we noticed this morning that they no longer work (we get a blank screen). I've posted an example URL / dataset in the blab slack.
Expected behavior
A clear and concise description of what you expected to happen instead.
How to reproduce
Steps to reproduce the current behavior:
Possible solution
(optional)
Your environment: if browsing Nextstrain online
Chrome and safari
Your environment: if running Nextstrain locally
auspice 2.7.0
):Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: