Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

MZ data source failing #300

Open
themonk911 opened this issue Nov 5, 2020 · 1 comment
Open

MZ data source failing #300

themonk911 opened this issue Nov 5, 2020 · 1 comment

Comments

@themonk911
Copy link
Contributor

"MozambiqueHumdataDataSource", "source_name": "MozambiqueHumdataDataSource", "config": {"name": "pipelines.epidemiology.mz_humdata.MozambiqueHumdataDataSource", "fetch": [{"url": "https://data.humdata.org/dataset/96f9bc99-28ee-4046-8a96-9f7c1a1462d7/resource/2857979e-a528-429e-b7ce-e4b1c3317718/download/mozambique-covid-19-cases.xlsx", "opts": {"ext": "xlsx"}, "parse": {"skiprows": 1}}], "test": {"skip": true, "metadata_query": "key.str.match(\"MZ_.*\")"}, "automation": {"job_group": "all", "deferred": true}}, "traceback": "Traceback (most recent call last):\n  File \"/opt/open-covid/src/lib/pipeline.py\", line 162, in _run_wrapper\n    return data_source.run(output_folder, cache, aux)\n  File \"/opt/open-covid/src/lib/data_source.py\", line 223, in run\n    data = self.fetch(output_folder, cache, fetch_opts)\n  File \"/opt/open-covid/src/lib/data_source.py\", line 76, in fetch\n    return {\n  File \"/opt/open-covid/src/lib/data_source.py\", line 77, in <dictcomp>\n    source_config.get(\"name\", idx): download_snapshot(\n  File \"/opt/open-covid/src/lib/net.py\", line 59, in download_snapshot\n    download(url, file_handle, **download_opts)\n  File \"/opt/open-covid/src/lib/net.py\", line 92, in download\n    req.raise_for_status()\n  File \"/usr/local/lib/python3.8/dist-packages/requests/models.py\", line 941, in raise_for_status\n    raise HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://data.humdata.org/dataset/96f9bc99-28ee-4046-8a96-9f7c1a1462d7/resource/2857979e-a528-429e-b7ce-e4b1c3317718/download/mozambique-covid-19-cases.xlsx\n", "message": "Error running data source."}"
@themonk911
Copy link
Contributor Author

Traceback (most recent call last):\n File "/opt/open-covid/src/lib/pipeline.py", line 162, in _run_wrapper
return data_source.run(output_folder, cache, aux)
File "/opt/open-covid/src/lib/data_source.py", line 223, in run
data = self.fetch(output_folder, cache, fetch_opts)
File "/opt/open-covid/src/lib/data_source.py", line 76, in fetch\n return {\n File "/opt/open-covid/src/lib/data_source.py", line 77, in
source_config.get("name", idx): download_snapshot(\n File "/opt/open-covid/src/lib/net.py", line 59, in download_snapshot
download(url, file_handle, **download_opts)\n File "/opt/open-covid/src/lib/net.py", line 92, in download
req.raise_for_status()\n File "/usr/local/lib/python3.8/dist-packages/requests/models.py", line 941, in raise_for_status
raise HTTPError(http_error_msg, response=self)\nrequests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://data.humdata.org/dataset/96f9bc99-28ee-4046-8a96-9f7c1a1462d7/resource/2857979e-a528-429e-b7ce-e4b1c3317718/download/mozambique-covid-19-cases.xlsx
"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant