Page 1 of 1

python urllib.request showing HTTP Error 504 wile downloading AOD data

Posted: Thu Aug 26, 2021 12:05 pm America/New_York
by pkanan03
Hello,
following the python example on https://ladsweb.modaps.eosdis.nasa.gov/ ... ts/#python, I am trying to download MODIS AOD files, but I am getting HTTP Error 504 error. Please see my syntax below:

-----
opener = urllib.request.build_opener()
opener.addheaders = [('Authorization', 'Bearer <mytoken>')]
urllib.request.install_opener(opener)
urllib.request.urlretrieve('https://ladsweb.modaps.eosdis.nasa.gov/ ... 134209.hdf', r'my_path')
----

Do I need to do something inherently different? I would appreciate any guidance.

Re: python urllib.request showing HTTP Error 504 wile downloading AOD data

Posted: Tue Sep 21, 2021 12:10 pm America/New_York
by LAADS_UserServices_M
Where were having some systems issue during your search time-frame so try again and let us know if you still have problem getting the files. Also, make sure the token you use with your call is generated on ladsweb (https://ladsweb.modaps.eosdis.nasa.gov/) and not from Earthdata URS webpage.