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

Course downloads a module or so and then shows ssl/connection error #661

Open
JunaidShafi opened this issue Jan 10, 2021 · 0 comments
Open

Comments

@JunaidShafi
Copy link

🚨Please review the Troubleshooting section
before reporting any issue. Don't forget also to check the current issues to
avoid duplicates.

Subject of the issue

Describe your issue here.

Your environment

  • Operating System (name/version): windows 10
  • Python version:3.7
  • youtube-dl version:
  • edx-dl version:

Steps to reproduce

Tell us how to reproduce this issue. Please provide us the course URL, and the
specific subsection or unit if possible.

Expected behaviour

Tell us what should happen.

Actual behaviour

Tell us what happens instead. If the script fails, please copy the entire
output of the command or the stacktrace (don't forget to obfuscate your
username and password). If you cannot copy the exception, attach a screenshot.

File : 100%|███████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 5.66M/5.66M [00:00, 2.59MB/s]

                                                                                                                                                                                                                                        Got SSL/Connection error: HTTPSConnectionPool(host='courses.edx.org', port=443): Max retries exceeded with url: /assets/courseware/v1/85d65fa50b105982e579293f9adbc540/asset-v1:CornellX+ENGR2000X+1T2018+type@asset+block/Handout_2.1_SolidMech_BigIdeas_WithoutNotes.pdf (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000017BF67B8448>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))

Hint: if you want to ignore this error, add --ignore-errors option to the command line

Traceback (most recent call last):
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\connection.py", line 170, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\util\connection.py", line 73, in create_connection
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
File "c:\users\mirju\appdata\local\programs\python\python37\lib\socket.py", line 752, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11002] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\connectionpool.py", line 706, in urlopen
chunked=chunked,
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
self._validate_conn(conn)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
conn.connect()
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\connection.py", line 353, in connect
conn = self._new_conn()
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\connection.py", line 182, in _new_conn
self, "Failed to establish a new connection: %s" % e
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x0000017BF67B8448>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\connectionpool.py", line 756, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\urllib3\util\retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='courses.edx.org', port=443): Max retries exceeded with url: /assets/courseware/v1/85d65fa50b105982e579293f9adbc540/asset-v1:CornellX+ENGR2000X+1T2018+type@asset+block/Handout_2.1_SolidMech_BigIdeas_WithoutNotes.pdf (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000017BF67B8448>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\users\mirju\appdata\local\programs\python\python37\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\Users\mirju\AppData\Local\Programs\Python\Python37\Scripts\edx-dl.exe_main
.py", line 7, in
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\edx_dl\edx_dl.py", line 1236, in main
download(args, selections, filtered_units, headers)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\edx_dl\edx_dl.py", line 1004, in download
download_unit(unit, args, target_dir, filename_prefix, headers)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\edx_dl\edx_dl.py", line 948, in download_unit
skip_or_download(res_downloads, FileType.Resource, headers, args)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\edx_dl\edx_dl.py", line 911, in skip_or_download
f(url, filename, headers, args)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\edx_dl\edx_dl.py", line 858, in download_url
raise e
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\edx_dl\edx_dl.py", line 850, in download_url
r = requests.get(url, headers=headers)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "c:\users\mirju\appdata\local\programs\python\python37\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPSConnectionPool(host='courses.edx.org', port=443): Max retries exceeded with url: /assets/courseware/v1/85d65fa50b105982e579293f9adbc540/asset-v1:CornellX+ENGR2000X+1T2018+type@asset+block/Handout_2.1_SolidMech_BigIdeas_WithoutNotes.pdf (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000017BF67B8448>: Failed to establish a new connection: [Errno 11002] getaddrinfo failed'))

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