johntruckenbrodt / pyroSAR

framework for large-scale SAR satellite data processing
MIT License
494 stars 110 forks source link

Geocode function stopped working: requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) #274

Closed junior-senior closed 9 months ago

junior-senior commented 9 months ago

Everything was working fine last week, this week it has been completely broken. I download the .zip files from the Alaskan Satellite Facility and then process them using the Geocode function. This week this error has been occuring when it was completely fine before, I have not made any changes to the code.

Ubuntu 22.04 GUI and Server

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "[user file path]/venv/lib/python3.10/site-packages/pyroSAR/drivers.py", line 1758, in getOSV files = osv.catch(sensor=self.sensor, osvtype=osvType, File "[user file path]/venv/lib/python3.10/site-packages/pyroSAR/S1/auxil.py", line 421, in catch items = self.__catch_gnss(sensor, start, stop, osvtype) File "[user file path]/venv/lib/python3.10/site-packages/pyroSAR/S1/auxil.py", line 351, in __catch_gnss response_json = response.json()['feed'] File "[user file path]/venv/lib/python3.10/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

johntruckenbrodt commented 9 months ago

Thanks for reporting @junior-senior. This happens because the URL for download is no longer available. I have linked a PR which will fix this.