fraymio / modis-tools

Tools for working with the MODIS API and MODIS data.
Apache License 2.0
23 stars 12 forks source link

"Exception: Can't read response", download does not work anymore #56

Open vauhage opened 1 week ago

vauhage commented 1 week ago

I have downloaded MOD17A2H data successfully until Oct 2nd following the example described by modis-tools. However, now it raises the following error, both for this dataset and the example Nigeria MOD13A2 tiles, both on a server as well as on my desktop computer:

Traceback (most recent call last): File "..\miniforge3\envs\gedi\Lib\site-packages\modis_tools\resources.py", line 117, in query feed = resp.json()["feed"]


KeyError: 'feed'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "..\modis_tools_exmaple_script.py", line 23, in <module>
    GranuleHandler.download_from_granules(nigeria_granules, session)
  File "..miniforge3\envs\gedi\Lib\site-packages\modis_tools\granule_handler.py", line 56, in download_from_granules
    urls = [cls.get_url_from_granule(x, ext) for x in granules]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "..\miniforge3\envs\gedi\Lib\site-packages\modis_tools\resources.py", line 120, in query
    raise Exception("Can't read response") from err
Exception: Can't read response

This is the script I used: 
![grafik](https://github.com/user-attachments/assets/c74272c1-c4c3-430c-8c5d-354b177ecacf)

I am working on Windows with miniforge
![grafik](https://github.com/user-attachments/assets/749b6899-04c8-4098-b490-c1f402068d48)

I would appreciate any help. Thank you very much.
mhriris commented 1 week ago

I have same issue! I've installed the new release and now it works perfectly,