Page 1 of 1

502 error downloading MOD07_L2

Posted: Sun Feb 01, 2026 10:20 pm America/New_York
by tsnow03
Hello, I'm running code that normally works consistently, but I'm running into a 502 error now on most requests. I've been having the issue Jan 31 and Feb 1. Maybe 1 out of 10 or fewer are working so most of my processing is failing. I am working in the cloud so the extra time will effectively increase the cost for this run by an order of magnitude so it would be wonderful to know if there is a way around this that I should know about or if there is something wrong with the system right now. I'm using earthaccess in AWS to download MOD07_L2 data as a netcdf. Here is the code:
res_mod = earthaccess.search_data(
short_name='MOD07_L2',
bounding_box=bbox,
temporal=(start_dt, end_dt)
)
# Download MODIS data
data_links = [granule.data_links(access="external") for granule in res_mod]
netcdf_list = [g._filter_related_links("USE SERVICE API")[0].replace(".html", ".nc4")
for g in best_grans[ind:ind+1]]
file_handlers = earthaccess.download(netcdf_list, modout_path, provider='NSIDC')

And here is the error:

Error while downloading the file MOD07_L2.A2022279.1625.061.2022280015524.hdf.nc4
Traceback (most recent call last):
File "/srv/conda/envs/notebook/lib/python3.11/site-packages/earthaccess/store.py", line 618, in _download_file
r.raise_for_status()
File "/srv/conda/envs/notebook/lib/python3.11/site-packages/requests/models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: https://ladsweb.modaps.eosdis.nasa.gov/opendap/RemoteResources/laads/allData/61/MOD07_L2/2022/279/MOD07_L2.A2022279.1625.061.2022280015524.hdf.nc4

Re: 502 error downloading MOD07_L2

Posted: Mon Feb 02, 2026 2:37 pm America/New_York
by LAADS_UserServices_M
We are having some issue with our OPeNDAP service and the infrastructure team is investigating. Hopefully, this should be fixed soon.

Re: 502 error downloading MOD07_L2

Posted: Mon Feb 02, 2026 5:35 pm America/New_York
by tsnow03
Thanks, it's working again now!

Re: 502 error downloading MOD07_L2

Posted: Tue Feb 03, 2026 6:59 am America/New_York
by LAADS_UserServices_M
Great, thanks for confirming it.