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

[WinError 10061] 由于目标计算机积极拒绝,无法连接 #92

Open
Hawkenm opened this issue Oct 18, 2021 · 0 comments
Open

[WinError 10061] 由于目标计算机积极拒绝,无法连接 #92

Hawkenm opened this issue Oct 18, 2021 · 0 comments

Comments

@Hawkenm
Copy link

Hawkenm commented Oct 18, 2021

PS I:\NeteaseCloudMusicFlac-master> python main.py 'https://music.163.com/#/playlist?id=99426250' --mp3
2021-10-18 22:43:30 main.py:177 [INFO] 将下载所有歌曲, 包括 MP3 格式.
2021-10-18 22:43:31 main.py:69 [INFO] 歌单: 【电子纯音】竞技游戏必备

2021-10-18 22:43:31 main.py:179 [INFO] 歌单中包含的歌曲有: ['锦里', 'Lynx', 'World', 'Beijing', 'Chrono', 'Setsuna', 'China-X', 'Lanterns', '烟袋斜街', 'At The Edge']
Traceback (most recent call last):
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connection.py", line 169, in _new_conn
conn = connection.create_connection(
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\util\connection.py", line 96, in create_connection
raise err
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\util\connection.py", line 86, in create_connection
sock.connect(sa)
ConnectionRefusedError: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 699, in urlopen
httplib_response = self._make_request(
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 394, in _make_request
conn.request(method, url, **httplib_request_kw)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connection.py", line 234, in request
super(HTTPConnection, self).request(method, url, body=body, headers=headers)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1255, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1301, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1250, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1010, in _send_output
self.send(msg)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 950, in send
self.connect()
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connection.py", line 200, in connect
conn = self._new_conn()
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connection.py", line 181, in _new_conn
raise NewConnectionError(
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x045ED3B8>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py", line 439, in send
resp = conn.urlopen(
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\urllib3\util\retry.py", line 574, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='musicapi.qianqian.com', port=80): Max retries exceeded with url: /v1/restserver/ting?query=%E9%94%A6%E9%87%8C&method=baidu.ting.search.common&format=json&page_no=1&page_size=5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x045ED3B8>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "main.py", line 209, in
main()
File "main.py", line 188, in main
song_infos = executor.map(get_song_info, song_ids)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures_base.py", line 600, in map
fs = [self.submit(fn, *args) for args in zip(*iterables)]
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures_base.py", line 600, in
fs = [self.submit(fn, *args) for args in zip(*iterables)]
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures_base.py", line 611, in result_iterator
yield fs.pop().result()
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures_base.py", line 439, in result
return self.__get_result()
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures_base.py", line 388, in __get_result
raise self._exception
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\concurrent\futures\thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "main.py", line 101, in get_songid
r = requests.get(BAIDU_SUGGESTION_API, params=payload, headers=HEADERS)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 75, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 542, in request
resp = self.send(prep, **send_kwargs)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\sessions.py", line 655, in send
r = adapter.send(request, **kwargs)
File "C:\Users\yaoyu\AppData\Local\Programs\Python\Python38-32\lib\site-packages\requests\adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='musicapi.qianqian.com', port=80): Max retries exceeded with url: /v1/restserver/ting?query=%E9%94%A6%E9%87%8C&method=baidu.ting.search.common&format=json&page_no=1&page_size=5 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x045ED3B8>: Failed to establish a new connection: [WinError 10061] 由于目标计算机积极拒绝,无法连接。'))

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