Download 503 error
Posted: Tue Apr 28, 2026 4:37 am America/New_York
Hello, yesterday I downloaded a subset of IMERG V07 files from the GES DISC without problems. Today I went to download another subset (same variables, different lon/lat selection), but I continuously get an error when downloading the links. It was alright for the first 30 links, but showed an error from link 31 onwards. When I try again, I get the error at the first file link.
Is the service down?
-------
I download the files using python:
TOKEN = "..."
file_name = "/subset_GPM_3IMERGDF_07_20260428_081302_.txt"
headers = {
"Authorization": f"Bearer {TOKEN}"
}
OUT_ROOT = "IMERG_daily"
os.makedirs(OUT_ROOT, exist_ok=True)
try:
with open(file_name, "r") as file:
links = file.readlines()
session = requests.Session()
session.headers.update(headers)
for i, link in enumerate(links, 1):
link = link.strip()
if not link:
continue
file_name = os.path.join(OUT_ROOT, os.path.basename(link.split('LABEL=')[-1].split('&')[0]))
try:
response = session.get(link, headers=headers, stream=True)
response.raise_for_status()
with open(file_name, "wb") as f:
for chunk in response.iter_content(1024):
f.write(chunk)
print(f"✅ {i}. {link} -> {file_name}")
except requests.exceptions.RequestException as e:
print(f"❌ {i}. Failed to Download {link}: {e}")
Is the service down?
-------
I download the files using python:
TOKEN = "..."
file_name = "/subset_GPM_3IMERGDF_07_20260428_081302_.txt"
headers = {
"Authorization": f"Bearer {TOKEN}"
}
OUT_ROOT = "IMERG_daily"
os.makedirs(OUT_ROOT, exist_ok=True)
try:
with open(file_name, "r") as file:
links = file.readlines()
session = requests.Session()
session.headers.update(headers)
for i, link in enumerate(links, 1):
link = link.strip()
if not link:
continue
file_name = os.path.join(OUT_ROOT, os.path.basename(link.split('LABEL=')[-1].split('&')[0]))
try:
response = session.get(link, headers=headers, stream=True)
response.raise_for_status()
with open(file_name, "wb") as f:
for chunk in response.iter_content(1024):
f.write(chunk)
print(f"✅ {i}. {link} -> {file_name}")
except requests.exceptions.RequestException as e:
print(f"❌ {i}. Failed to Download {link}: {e}")