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

Hospital Data Scraper is Broken #187

Closed
Mr0grog opened this issue Mar 14, 2021 · 1 comment · Fixed by #191
Closed

Hospital Data Scraper is Broken #187

Mr0grog opened this issue Mar 14, 2021 · 1 comment · Fixed by #191
Assignees
Labels
bug Something isn't working

Comments

@Mr0grog
Copy link
Collaborator

Mr0grog commented Mar 14, 2021

The hospital scraper has apparently been broken for a while, but there's no logging. (Will file a different issue for that: sfbrigade/stop-covid19-sfbayarea#1024)

Current error:

Hospitalization data fetch encountered error: CKAN API Error: Not found: Resource "42d33765-20fd-44b8-a978-b083b7542225" was not found. (status: 404)
Traceback (most recent call last):
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/scraper_hospital_data.py", line 43, in main
    out = hospitals.get_timeseries(ca_counties.bay_area_counties)
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/hospitals.py", line 142, in get_timeseries
    meta = next(data_raw)
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/ckan.py", line 50, in data
    data = self.request(next_url, params=next_params)
  File "/home/runner/work/stop-covid19-sfbayarea/stop-covid19-sfbayarea/scraper/covid19_sfbayarea/data/ckan.py", line 89, in request
    raise BadRequest(f'CKAN API Error: {message}', response=response)
covid19_sfbayarea.data.errors.BadRequest: CKAN API Error: Not found: Resource "42d33765-20fd-44b8-a978-b083b7542225" was not found. (status: 404)

See full action logs: https://github.com/sfbrigade/stop-covid19-sfbayarea/runs/2107127471?check_suite_focus=true

/cc @benghancock

@benghancock
Copy link
Collaborator

Thanks for flagging this @Mr0grog! I'll plan to take a look at this tomorrow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants