Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Burst download error #85

Open
Xin-Wang-520 opened this issue Sep 9, 2024 · 1 comment
Open

Burst download error #85

Xin-Wang-520 opened this issue Sep 9, 2024 · 1 comment

Comments

@Xin-Wang-520
Copy link

Hello teacher, this error occurred when I was downloading burst. I saw that there were indeed these files on the official website, but after testing, I found that I encountered many such problems and could not download some of the burst.

`(burst2safe) wangxin@wangxindeMac-mini burst_stack_129 % burst2stack --rel-orbit 129 --start-date 2015-01-29 --end-date 2015-02-24 --extent 78.78 28.39 79.43 28.61
Creating SAFEs for 2 time periods...

Using burst group search...
Found 3 burst(s).
Check burst group validity...
Downloading data...
Download complete.
Creating SAFE...
SAFE created!

Using burst group search...
Found 3 burst(s).
Check burst group validity...
Downloading data...
Download complete.
Creating SAFE...
SAFE created!
(burst2safe) wangxin@wangxindeMac-mini burst_stack_129 % burst2stack --rel-orbit 129 --start-date 2015-01-29 --end-date 2015-02-24 --extent 78.96 28.46 79.10 28.49
Creating SAFEs for 2 time periods...

Using burst group search...
Found 1 burst(s).
Check burst group validity...
Downloading data...
Download complete.
Creating SAFE...
SAFE created!

Using burst group search...
Found 1 burst(s).
Check burst group validity...
Downloading data...
urllib3.exceptions.SSLError: [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/requests/adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/urllib3/connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/urllib3/util/retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='urs.earthdata.nasa.gov', port=443): Max retries exceeded with url: /oauth/authorize?client_id=BO_n7nTIlMljdvU6kRRB3g&response_type=code&redirect_uri=https://auth.asf.alaska.edu/login (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/bin/burst2stack", line 8, in
sys.exit(main())
^^^^^^
File "/Users/wangxin/Documents/code/burst2safe/src/burst2safe/burst2stack.py", line 95, in main
burst2stack(
File "/Users/wangxin/Documents/code/burst2safe/src/burst2safe/burst2stack.py", line 55, in burst2stack
burst2safe(
File "/Users/wangxin/Documents/code/burst2safe/src/burst2safe/burst2safe.py", line 62, in burst2safe
download_bursts(burst_infos)
File "/Users/wangxin/Documents/code/burst2safe/src/burst2safe/search.py", line 232, in download_bursts
session = asf_search.ASFSession().auth_with_creds(username, password)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/asf_search/ASFSession.py", line 134, in auth_with_creds
self.get(login_url)
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/requests/sessions.py", line 602, in get
return self.request("GET", url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/wangxin/Softwares/miniconda3/envs/burst2safe/lib/python3.12/site-packages/requests/adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='urs.earthdata.nasa.gov', port=443): Max retries exceeded with url: /oauth/authorize?client_id=BO_n7nTIlMljdvU6kRRB3g&response_type=code&redirect_uri=https://auth.asf.alaska.edu/login (Caused by SSLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
`

@Xin-Wang-520
Copy link
Author

@forrestfwilliams

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant