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

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

Open
vauhage opened this issue Oct 24, 2024 · 1 comment
Open

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

vauhage opened this issue Oct 24, 2024 · 1 comment

Comments

@vauhage
Copy link

vauhage commented Oct 24, 2024

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
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

I am working on Windows with miniforge
grafik

I would appreciate any help. Thank you very much.

@mhriris
Copy link

mhriris commented Oct 29, 2024

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

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

No branches or pull requests

2 participants