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

即使挂了全局代理,也不能下载港澳台区的番剧 #71

Closed
missing233 opened this issue Dec 10, 2022 · 4 comments
Closed

即使挂了全局代理,也不能下载港澳台区的番剧 #71

missing233 opened this issue Dec 10, 2022 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@missing233
Copy link

bilix get_video https://www.bilibili.com/bangumi/play/ep398594 --cookie ************************
WARNING GET ConnectError url: https://www.bilibili.com/bangumi/play/ep398594
WARNING GET ConnectError url: https://www.bilibili.com/bangumi/play/ep398594
WARNING GET ConnectError url: https://www.bilibili.com/bangumi/play/ep398594
ERROR GET 超过重复次数 https://www.bilibili.com/bangumi/play/ep398594

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\anyio\streams\tls.py", line 130, in _call_sslobject_method
result = func(*args)
File "C:\Program Files\Python310\lib\ssl.py", line 974, in do_handshake
self._sslobj.do_handshake()
ssl.SSLSyscallError: Some I/O error occurred (_ssl.c:997)

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\httpcore_exceptions.py", line 10, in map_exceptions
yield
File "C:\Program Files\Python310\lib\site-packages\httpcore\backends\asyncio.py", line 76, in start_tls
raise exc
File "C:\Program Files\Python310\lib\site-packages\httpcore\backends\asyncio.py", line 67, in start_tls
ssl_stream = await anyio.streams.tls.TLSStream.wrap(
File "C:\Program Files\Python310\lib\site-packages\anyio\streams\tls.py", line 122, in wrap
await wrapper._call_sslobject_method(ssl_object.do_handshake)
File "C:\Program Files\Python310\lib\site-packages\anyio\streams\tls.py", line 151, in _call_sslobject_method
raise BrokenResourceError from exc
anyio.BrokenResourceError

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\site-packages\httpx_transports\default.py", line 60, in map_httpcore_exceptions
yield
File "C:\Program Files\Python310\lib\site-packages\httpx_transports\default.py", line 353, in handle_async_request
resp = await self._pool.handle_async_request(req)
File "C:\Program Files\Python310\lib\site-packages\httpcore_async\connection_pool.py", line 253, in handle_async_request
raise exc
File "C:\Program Files\Python310\lib\site-packages\httpcore_async\connection_pool.py", line 237, in handle_async_request
response = await connection.handle_async_request(request)
File "C:\Program Files\Python310\lib\site-packages\httpcore_async\http_proxy.py", line 258, in handle_async_request
connect_response = await self._connection.handle_async_request(
File "C:\Program Files\Python310\lib\site-packages\httpcore_async\connection.py", line 86, in handle_async_request
raise exc
File "C:\Program Files\Python310\lib\site-packages\httpcore_async\connection.py", line 63, in handle_async_request
stream = await self._connect(request)
File "C:\Program Files\Python310\lib\site-packages\httpcore_async\connection.py", line 150, in _connect
stream = await stream.start_tls(**kwargs)
File "C:\Program Files\Python310\lib\site-packages\httpcore\backends\asyncio.py", line 64, in start_tls
with map_exceptions(exc_map):
File "C:\Program Files\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Program Files\Python310\lib\site-packages\httpcore_exceptions.py", line 14, in map_exceptions
raise to_exc(exc)
httpcore.ConnectError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "C:\Program Files\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Program Files\Python310\Scripts\bilix.exe_main
.py", line 7, in
File "C:\Program Files\Python310\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\Program Files\Python310\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\Program Files\Python310\lib\site-packages\click\core.py", line 760, in invoke
return _callback(*args, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\bilix_main
.py", line 322, in main
loop.run_until_complete(cor)
File "C:\Program Files\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
return future.result()
File "C:\Program Files\Python310\lib\site-packages\bilix\download\downloader_bilibili.py", line 387, in get_video
video_info = await api.get_video_info(self.client, url)
File "C:\Program Files\Python310\lib\site-packages\bilix\api\bilibili.py", line 173, in get_video_info
res = await req_retry(client, url, follow_redirects=True)
File "C:\Program Files\Python310\lib\site-packages\bilix\utils.py", line 46, in req_retry
raise pre_exc
File "C:\Program Files\Python310\lib\site-packages\bilix\utils.py", line 28, in req_retry
res = await client.request(method, url, follow_redirects=follow_redirects, **kwargs)
File "C:\Program Files\Python310\lib\site-packages\httpx_client.py", line 1533, in request
return await self.send(request, auth=auth, follow_redirects=follow_redirects)
File "C:\Program Files\Python310\lib\site-packages\httpx_client.py", line 1620, in send
response = await self._send_handling_auth(
File "C:\Program Files\Python310\lib\site-packages\httpx_client.py", line 1648, in _send_handling_auth
response = await self._send_handling_redirects(
File "C:\Program Files\Python310\lib\site-packages\httpx_client.py", line 1685, in _send_handling_redirects
response = await self._send_single_request(request)
File "C:\Program Files\Python310\lib\site-packages\httpx_client.py", line 1722, in _send_single_request
response = await transport.handle_async_request(request)
File "C:\Program Files\Python310\lib\site-packages\httpx_transports\default.py", line 352, in handle_async_request
with map_httpcore_exceptions():
File "C:\Program Files\Python310\lib\contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
File "C:\Program Files\Python310\lib\site-packages\httpx_transports\default.py", line 77, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectError

@HFrost0
Copy link
Owner

HFrost0 commented Dec 11, 2022

经过我测试是可以正常下载的。该错误为网络连接失败,再检查一下代理设置吧

@missing233
Copy link
Author

经过我测试是可以正常下载的。该错误为网络连接失败,再检查一下代理设置吧

使用的是Clash for Windows全局代理,两个机场的HK节点均有此提示

@HFrost0
Copy link
Owner

HFrost0 commented Dec 15, 2022

对于这个问题不能很好的帮你测试,因为我在hk服务器上没有装代理,使用的也不是win和clash。在hk服务器上直接下载是可以的

@HFrost0 HFrost0 added the help wanted Extra attention is needed label Dec 15, 2022
@draftman9
Copy link

draftman9 commented Feb 11, 2023

经过我测试是可以正常下载的。该错误为网络连接失败,再检查一下代理设置吧

使用的是Clash for Windows全局代理,两个机场的HK节点均有此提示

你的报错提示你被阻止访问了,换个软件开全局试试吧。比如v2rayn。

@HFrost0 HFrost0 closed this as completed Feb 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants