github-tooling / ghtopdep

:star: CLI tool for sorting dependents repo by stars
MIT License
261 stars 18 forks source link

ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123) #18

Open treasersimplifies opened 3 years ago

treasersimplifies commented 3 years ago

Python Verseion: 3.9.4

Error logs:

(py3_9)  ✘ treaser@MacBook-Plou  ~  ghtopdep https://github.com/trufflesuite/truffle
⠼ Fetching information about repositoriesTraceback (most recent call last):
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 696, in urlopen
    self._prepare_proxy(conn)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/site-packages/urllib3/connectionpool.py", line 964, in _prepare_proxy
    conn.connect()
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/site-packages/urllib3/connection.py", line 364, in connect
    conn = self._connect_tls_proxy(hostname, conn)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/site-packages/urllib3/connection.py", line 501, in _connect_tls_proxy
    socket = ssl_wrap_socket(
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 453, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/site-packages/urllib3/util/ssl_.py", line 495, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock)
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/ssl.py", line 1040, in _create
    self.do_handshake()
  File "/Users/treasersmac/opt/anaconda3/envs/py3_9/lib/python3.9/ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123)

Strange thing is that when I run the example in the README(ghtopdep https://github.com/dropbox/dropbox-sdk-js), it works well.