ASF_Search Download Error

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
melonsoda
Posts: 2
Joined: Sun Feb 04, 2024 11:55 pm America/New_York
Answers: 0

ASF_Search Download Error

by melonsoda » Mon Feb 05, 2024 1:25 am America/New_York

Hi, I want to ask about the error I got when I try to download Sentinel 1 Imagery using asf search python library. I am sure that my script is working weeks ago. But now it shows error like this
raise ASFDownloadError(f'Error downloading {url}: directory not found: {path}')
asf_search.exceptions.ASFDownloadError: Error downloading https://datapool.asf.alaska.edu/GRD_HD/SA/S1A_IW_GRDH_1SDV_20240203T112657_20240203T112722_052394_0655F5_824C.zip: directory not found:
Strangely when I put link above in my browser it download the data immediately.
I tried to search the solution online but I cannot find it. I also attach my script with this email just in case you want to check it. I hope you can help me with this problem.

Filters:

kimfairbanks
Posts: 5
Joined: Thu Oct 06, 2022 8:29 pm America/New_York
Answers: 1

Re: ASF_Search Download Error

by kimfairbanks » Mon Feb 05, 2024 4:09 pm America/New_York

Thank you for your post!

We were unable to recreate this behavior, but this particular error gets raised when the folder you're attempting to download to doesn't exist. Would you mind confirming that the folder path you were downloading to still exists and matches the path you're providing to asf-search?

If you're running your script from a different directory than before this can also cause this issue if you didn't provide an absolute file path.

melonsoda
Posts: 2
Joined: Sun Feb 04, 2024 11:55 pm America/New_York
Answers: 0

Re: ASF_Search Download Error

by melonsoda » Mon Feb 05, 2024 10:39 pm America/New_York

Great. Now my script able to run smoothly. Thanks for the answer, Sir.

Post Reply