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

连接cn-proxy.com超时 #51

Open
ekkkkki opened this issue May 29, 2024 · 0 comments
Open

连接cn-proxy.com超时 #51

ekkkkki opened this issue May 29, 2024 · 0 comments

Comments

@ekkkkki
Copy link

ekkkkki commented May 29, 2024

网易云版本:1.5.0
启动无效。错误日志如下,看起来是连接cn-proxy时候出了问题。

python NeteaseMusicProxy.py
/Users/eric/Library/CloudStorage/OneDrive-Personal/Program/NeteaseMusicAbroad/NeteaseMusicProxy.py:4: DeprecationWarning: twisted.python.compat.urllib_parse was deprecated in Twisted 21.2.0: Import urllib.parse directly
  from twisted.python.compat import urllib_parse
2024-05-29 22:50:55+0900 [-] Log opened.
2024-05-29 22:52:10+0900 [-] Traceback (most recent call last):
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/connection.py", line 203, in _new_conn
2024-05-29 22:52:10+0900 [-]     sock = connection.create_connection(
2024-05-29 22:52:10+0900 [-]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/util/connection.py", line 85, in create_connection
2024-05-29 22:52:10+0900 [-]     raise err
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/util/connection.py", line 73, in create_connection
2024-05-29 22:52:10+0900 [-]     sock.connect(sa)
2024-05-29 22:52:10+0900 [-] TimeoutError: [Errno 60] Operation timed out
2024-05-29 22:52:10+0900 [-]
2024-05-29 22:52:10+0900 [-] The above exception was the direct cause of the following exception:
2024-05-29 22:52:10+0900 [-]
2024-05-29 22:52:10+0900 [-] Traceback (most recent call last):
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/connectionpool.py", line 790, in urlopen
2024-05-29 22:52:10+0900 [-]     response = self._make_request(
2024-05-29 22:52:10+0900 [-]                ^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/connectionpool.py", line 496, in _make_request
2024-05-29 22:52:10+0900 [-]     conn.request(
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/connection.py", line 395, in request
2024-05-29 22:52:10+0900 [-]     self.endheaders()
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/http/client.py", line 1281, in endheaders
2024-05-29 22:52:10+0900 [-]     self._send_output(message_body, encode_chunked=encode_chunked)
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/http/client.py", line 1041, in _send_output
2024-05-29 22:52:10+0900 [-]     self.send(msg)
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/http/client.py", line 979, in send
2024-05-29 22:52:10+0900 [-]     self.connect()
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/connection.py", line 243, in connect
2024-05-29 22:52:10+0900 [-]     self.sock = self._new_conn()
2024-05-29 22:52:10+0900 [-]                 ^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/connection.py", line 212, in _new_conn
2024-05-29 22:52:10+0900 [-]     raise ConnectTimeoutError(
2024-05-29 22:52:10+0900 [-] urllib3.exceptions.ConnectTimeoutError: (<urllib3.connection.HTTPConnection object at 0x106763fd0>, 'Connection to cn-proxy.com timed out. (connect timeout=None)')
2024-05-29 22:52:10+0900 [-]
2024-05-29 22:52:10+0900 [-] The above exception was the direct cause of the following exception:
2024-05-29 22:52:10+0900 [-]
2024-05-29 22:52:10+0900 [-] Traceback (most recent call last):
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
2024-05-29 22:52:10+0900 [-]     resp = conn.urlopen(
2024-05-29 22:52:10+0900 [-]            ^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/connectionpool.py", line 844, in urlopen
2024-05-29 22:52:10+0900 [-]     retries = retries.increment(
2024-05-29 22:52:10+0900 [-]               ^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/urllib3/util/retry.py", line 515, in increment
2024-05-29 22:52:10+0900 [-]     raise MaxRetryError(_pool, url, reason) from reason  # type: ignore[arg-type]
2024-05-29 22:52:10+0900 [-]     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-] urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='cn-proxy.com', port=80): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x106763fd0>, 'Connection to cn-proxy.com timed out. (connect timeout=None)'))
2024-05-29 22:52:10+0900 [-]
2024-05-29 22:52:10+0900 [-] During handling of the above exception, another exception occurred:
2024-05-29 22:52:10+0900 [-]
2024-05-29 22:52:10+0900 [-] Traceback (most recent call last):
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/Library/CloudStorage/OneDrive-Personal/Program/NeteaseMusicAbroad/NeteaseMusicProxy.py", line 266, in <module>
2024-05-29 22:52:10+0900 [-]     mainland_proxy = MainlandProxy()
2024-05-29 22:52:10+0900 [-]                      ^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/Library/CloudStorage/OneDrive-Personal/Program/NeteaseMusicAbroad/NeteaseMusicProxy.py", line 64, in __init__
2024-05-29 22:52:10+0900 [-]     self.set_proxy()
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/Library/CloudStorage/OneDrive-Personal/Program/NeteaseMusicAbroad/NeteaseMusicProxy.py", line 69, in set_proxy
2024-05-29 22:52:10+0900 [-]     r = requests.get("http://cn-proxy.com/")
2024-05-29 22:52:10+0900 [-]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/requests/api.py", line 73, in get
2024-05-29 22:52:10+0900 [-]     return request("get", url, params=params, **kwargs)
2024-05-29 22:52:10+0900 [-]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/requests/api.py", line 59, in request
2024-05-29 22:52:10+0900 [-]     return session.request(method=method, url=url, **kwargs)
2024-05-29 22:52:10+0900 [-]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
2024-05-29 22:52:10+0900 [-]     resp = self.send(prep, **send_kwargs)
2024-05-29 22:52:10+0900 [-]            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
2024-05-29 22:52:10+0900 [-]     r = adapter.send(request, **kwargs)
2024-05-29 22:52:10+0900 [-]         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2024-05-29 22:52:10+0900 [-]   File "/Users/eric/.pyenv/versions/3.11.6/lib/python3.11/site-packages/requests/adapters.py", line 507, in send
2024-05-29 22:52:10+0900 [-]     raise ConnectTimeout(e, request=request)
2024-05-29 22:52:10+0900 [-] requests.exceptions.ConnectTimeout: HTTPConnectionPool(host='cn-proxy.com', port=80): Max retries exceeded with url: / (Caused by ConnectTimeoutError(<urllib3.connection.HTTPConnection object at 0x106763fd0>, 'Connection to cn-proxy.com timed out. (connect timeout=None)'))
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