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

zoomeye初始化失败 #73

Open
taknife opened this issue Jan 22, 2022 · 0 comments
Open

zoomeye初始化失败 #73

taknife opened this issue Jan 22, 2022 · 0 comments

Comments

@taknife
Copy link

taknife commented Jan 22, 2022

请问这个是什么原因,在执行zoomeye init -apikey时报错

报错信息如下:

Traceback (most recent call last):
File "C:\Python38\Lib\site-packages\urllib3\connectionpool.py", line 696, in urlopen
self._prepare_proxy(conn)
File "C:\Python38\Lib\site-packages\urllib3\connectionpool.py", line 964, in _prepare_proxy
conn.connect()
File "C:\Python38\Lib\site-packages\urllib3\connection.py", line 364, in connect
conn = self._connect_tls_proxy(hostname, conn)
File "C:\Python38\Lib\site-packages\urllib3\connection.py", line 501, in connect_tls_proxy
socket = ssl_wrap_socket(
File "C:\Python38\Lib\site-packages\urllib3\util\ssl
.py", line 453, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(sock, context, tls_in_tls)
File "C:\Python38\Lib\site-packages\urllib3\util\ssl
.py", line 495, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock)
File "c:\python38\lib\ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "c:\python38\lib\ssl.py", line 1040, in _create
self.do_handshake()
File "c:\python38\lib\ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ssl.SSLEOFError: EOF occurred in violation of protocol (_ssl.c:1124)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Python38\Lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Python38\Lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "C:\Python38\Lib\site-packages\urllib3\util\retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.zoomeye.org', port=443): Max retries exceeded with url: /resources-info (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1124)')))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\python38\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\python38\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Python38\Scripts\zoomeye.exe_main
.py", line 7, in
File "c:\python38\lib\site-packages\zoomeye\cli.py", line 230, in main
args.func(args)
File "c:\python38\lib\site-packages\zoomeye\core.py", line 86, in init
key_init(api_key)
File "c:\python38\lib\site-packages\zoomeye\core.py", line 35, in key_init
user_data = zoom.resources_info()
File "c:\python38\lib\site-packages\zoomeye\sdk.py", line 252, in resources_info
result = self._request(self.user_info_api, headers=headers)
File "c:\python38\lib\site-packages\zoomeye\sdk.py", line 118, in _request
resp = requests.get(url, data=params, headers=headers)
File "C:\Python38\Lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\Python38\Lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Python38\Lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Python38\Lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Python38\Lib\site-packages\requests\adapters.py", line 514, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='api.zoomeye.org', port=443): Max retries exceeded with url: /resources-info (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1124)')))

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