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.SSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1123) #18

Open
treasersimplifies opened this issue Oct 30, 2021 · 0 comments

Comments

@treasersimplifies
Copy link

treasersimplifies commented Oct 30, 2021

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.

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