502 error downloading MOD07_L2

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
tsnow03
Posts: 2
Joined: Thu May 09, 2019 10:42 am America/New_York
Answers: 0

502 error downloading MOD07_L2

by tsnow03 » Sun Feb 01, 2026 10:20 pm America/New_York

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

Filters:

LAADS_UserServices_M
User Services
User Services
Posts: 68
Joined: Fri Dec 13, 2024 2:40 pm America/New_York
Answers: 0
Endorsed: 1 time

Re: 502 error downloading MOD07_L2

by LAADS_UserServices_M » Mon Feb 02, 2026 2:37 pm America/New_York

We are having some issue with our OPeNDAP service and the infrastructure team is investigating. Hopefully, this should be fixed soon.
Regards,
LAADS User Services
To receive news from LAADS DAAC direct to your inbox, email laadsdaac-join@lists.nasa.gov with “subscribe” in the subject line.

tsnow03
Posts: 2
Joined: Thu May 09, 2019 10:42 am America/New_York
Answers: 0

Re: 502 error downloading MOD07_L2

by tsnow03 » Mon Feb 02, 2026 5:35 pm America/New_York

Thanks, it's working again now!

LAADS_UserServices_M
User Services
User Services
Posts: 68
Joined: Fri Dec 13, 2024 2:40 pm America/New_York
Answers: 0
Endorsed: 1 time

Re: 502 error downloading MOD07_L2

by LAADS_UserServices_M » Tue Feb 03, 2026 6:59 am America/New_York

Great, thanks for confirming it.
Regards,
LAADS User Services
To receive news from LAADS DAAC direct to your inbox, email laadsdaac-join@lists.nasa.gov with “subscribe” in the subject line.

Post Reply