dinushka114 / eduscope-downloader

8 stars 6 forks source link

SSL Error #1

Open notnavindu opened 2 years ago

notnavindu commented 2 years ago

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 commented 2 years ago

yes it is not working now.there are some ssl upgrades.I have to identify that things and update it.Thank you for download the script

Sent from my iPhone

On 1 Jun 2022, at 12:20 PM, Navindu Amarakoon @.***> wrote:

 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_wrapsocket( 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_socketimpl( 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 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?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.

notnavindu commented 2 years ago

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

dinushka114 commented 2 years ago

it’s ok.no worries

Sent from my iPhone

On 1 Jun 2022, at 8:58 PM, Navindu Amarakoon @.***> wrote:

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

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.