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

ingest/fetch-ncov-global-case-counts: follow redirection #68

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

joverlee521
Copy link
Contributor

Our case counts updates resulted in an empty file¹, which lead to the failure of our model pipelines.² Turns out the OWID endpoint is redirected to another endpoint.

$ curl -I https://covid.ourworldindata.org/data/owid-covid-data.csv
HTTP/2 302
date: Fri, 27 Oct 2023 17:34:37 GMT
location: https://covid-19.nyc3.digitaloceanspaces.com/public/owid-covid-data.csv
...

curl does not follow HTTP redirections by default, so we have to tell curl to follow redirection with --location option.

¹ https://github.com/nextstrain/forecasts-ncov/actions/runs/6656776373/job/18090077156#step:5:11
² https://bedfordlab.slack.com/archives/C03BY4MPNCS/p1698393532650979

Checklist

Our case counts updates resulted in an empty file¹, which lead to
the failure of our model pipelines.² Turns out the OWID endpoint is
redirected to another endpoint.

```
$ curl -I https://covid.ourworldindata.org/data/owid-covid-data.csv
HTTP/2 302
date: Fri, 27 Oct 2023 17:34:37 GMT
location: https://covid-19.nyc3.digitaloceanspaces.com/public/owid-covid-data.csv
...
```

curl does not follow HTTP redirections by default, so we have to tell
curl to follow redirection with `--location` option.

¹ https://github.com/nextstrain/forecasts-ncov/actions/runs/6656776373/job/18090077156#step:5:11
² https://bedfordlab.slack.com/archives/C03BY4MPNCS/p1698393532650979
@joverlee521 joverlee521 merged commit 10e1495 into main Oct 27, 2023
@joverlee521 joverlee521 deleted the fix-case-counts branch October 27, 2023 17:42
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

Successfully merging this pull request may close these issues.

1 participant