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

你好,我问下下面这个报错怎么解决 #6

Open
hust-xc opened this issue Sep 23, 2020 · 0 comments
Open

你好,我问下下面这个报错怎么解决 #6

hust-xc opened this issue Sep 23, 2020 · 0 comments

Comments

@hust-xc
Copy link

hust-xc commented Sep 23, 2020

请求登录接口:
接口请求参数:{'country': 86, 'cellphone': '*******', 'password': '********', 'captcha': '', 'remember': 1, 'platform': 3, 'appid': 1, 'source': ''}
请求过程中出错了,出错信息为:Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.0.dev0-py3.8.egg/urllib3/connectionpool.py", line 686, in urlopen
self._prepare_proxy(conn)
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.0.dev0-py3.8.egg/urllib3/connectionpool.py", line 952, in prepare_proxy
conn.connect()
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.0.dev0-py3.8.egg/urllib3/connection.py", line 389, in connect
self.sock = ssl_wrap_socket(
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.0.dev0-py3.8.egg/urllib3/util/ssl
.py", line 397, in ssl_wrap_socket
ssl_sock = context.wrap_socket(sock, server_hostname=server_hostname)
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/usr/local/Cellar/[email protected]/3.8.5/Frameworks/Python.framework/Versions/3.8/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests-2.24.0-py3.8.egg/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.0.dev0-py3.8.egg/urllib3/connectionpool.py", line 745, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3-1.26.0.dev0-py3.8.egg/urllib3/util/retry.py", line 474, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='account.geekbang.org', port=443): Max retries exceeded with url: /account/ticket/login (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1123)')))

@hust-xc hust-xc closed this as completed Sep 23, 2020
@hust-xc hust-xc reopened this Sep 23, 2020
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