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

SSL Error #1

Open
notnavindu opened this issue Jun 1, 2022 · 3 comments
Open

SSL Error #1

notnavindu opened this issue Jun 1, 2022 · 3 comments

Comments

@notnavindu
Copy link

Hello, I tried using this tool to download a video but I don't think it's working.

GUI Version: No indication of downloading or errors (Eduscope Downloader.exe)
CLI Version: SSL error

Log:

Traceback (most recent call last):
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1010, in _validate_conn
    conn.connect()
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 411, in connect
    self.sock = ssl_wrap_socket(
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 428, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 472, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 512, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1070, in _create
    self.do_handshake()
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1341, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 439, in send
    resp = conn.urlopen(
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 573, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='lecturecapture.sliit.lk', port=443): Max retries exceeded with url: /webservice.php?key=vhjgyu456dCT&type=video_paths&id=Q2VKNExTbUplUF8xNjQxMA== (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "S:\eduscope-downloader\main.py", line 137, in <module>
    path = get_actual_path()
  File "S:\eduscope-downloader\main.py", line 55, in get_actual_path
    response = session.get(URL).text
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 555, in get    return self.request('GET', url, **kwargs)
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 542, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 655, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\navan\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 514, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='lecturecapture.sliit.lk', port=443): Max retries exceeded with url: /webservice.php?key=vhjgyu456dCT&type=video_paths&id=Q2VKNExTbUplUF8xNjQxMA== (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)')))

Any idea why this is happening?

@dinushka114
Copy link
Owner

dinushka114 commented Jun 1, 2022 via email

@notnavindu
Copy link
Author

Would you mind if I use some of the code for a project? I'll give you credits in the README

@dinushka114
Copy link
Owner

dinushka114 commented Jun 2, 2022 via email

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

2 participants