Open ste519 opened 3 years ago
**
Error here: http://localhost:8000/api/data/sd-zip confirmed = fetch_sd_zip_code_data()
where is the config for COVID_SD_ZIP_CODE_API_URL: r = requests.get(url=COVID_SD_ZIP_CODE_API_URL) **
=== from docker log:
result = self.fn(*self.args, **self.kwargs)
File "./router/data.py", line 195, in get_covid_sd_zip_code_data
confirmed = fetch_sd_zip_code_data()
File "./router/data.py", line 95, in fetch_sd_zip_code_data
features = data["features"]
KeyError: 'features'
And it looks like that layer now wants a login:
COVID_SD_ZIP_CODE_API_URL = (
"https://gis-public.sandiegocounty.gov/arcgis/rest/services/Hosted"
"/COVID_19_Statistics__by_ZIP_Code/FeatureServer/0/query?f=json"
"&where=1%3D1&outFields=ziptext,rate_100k,case_count,"
"updatedate&returnGeometry=false"
"&spatialRel=esriSpatialRelIntersects&outFields"
"=*&orderByFields=updatedate%20DESC"
"&outSR=102100&resultOffset=0&resultRecordCount=113"
)
Map's data layer is not loading properly.