rachmadaniHaryono / we-get

:icecream: Command-line tool for searching torrents.
MIT License
155 stars 26 forks source link

Certificate has expired #53

Open viertelb opened 1 year ago

viertelb commented 1 year ago

Any hints how to solve this?

I am doing this on Linux RPi64 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux an a RaspberryPi 4:

we-get -s <SEARCH> results in error

(most recent call last):ay' ....
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 699, in urlopen
    httplib_response = self._make_request(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 382, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 1012, in _validate_conn
    conn.connect()
  File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 411, in connect
    self.sock = ssl_wrap_socket(
  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/usr/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/usr/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.9/site-packages/requests/adapters.py", line 489, in send
    resp = conn.urlopen(
  File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 755, in urlopen
    retries = retries.increment(
  File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 574, in increment
    raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.rarbg.to', port=443): Max retries exceeded with url: /torrents.php/api/v2/list_movies.json?query_term=hot-shots&quality720p&genre=all (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/.local/bin/we-get", line 8, in <module>
    sys.exit(main())
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/__init__.py", line 14, in main
    we_get.start()
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/core/we_get.py", line 256, in start
    sel.run()
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/core/we_get.py", line 172, in run
    items = run.main(self.pargs)
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/modules/rargb.py", line 86, in main
    return run.search()
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/modules/rargb.py", line 46, in search
    data = json.loads(self.module.http_get_request(url))
  File "/home/pi/.local/lib/python3.9/site-packages/we_get/core/module.py", line 25, in http_get_request
    res = requests.get(url, headers=dict(headers))
  File "/home/pi/.local/lib/python3.9/site-packages/requests/api.py", line 73, in get
    return request("get", url, params=params, **kwargs)
  File "/home/pi/.local/lib/python3.9/site-packages/requests/api.py", line 59, in request
    return session.request(method=method, url=url, **kwargs)
  File "/home/pi/.local/lib/python3.9/site-packages/requests/sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/.local/lib/python3.9/site-packages/requests/sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/.local/lib/python3.9/site-packages/requests/adapters.py", line 563, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='www.rarbg.to', port=443): Max retries exceeded with url: /torrents.php/api/v2/list_movies.json?query_term=hot-shots&quality720p&genre=all (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: certificate has expired (_ssl.c:1123)')))
viertelb commented 1 year ago

Also rarbg is down and should be removed.