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

大佬,是不是斗鱼失效了? #291

Closed
ice-orange-xi opened this issue Dec 5, 2021 · 5 comments
Closed

大佬,是不是斗鱼失效了? #291

ice-orange-xi opened this issue Dec 5, 2021 · 5 comments
Labels
wontfix This will not be worked on Worksforme 😕

Comments

@ice-orange-xi
Copy link

我今天运行报这个错,麻烦大佬看看,谢谢。
raise ClientConnectorSSLError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host danmuproxy.douyu.com:8503 ssl:default [[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)]
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x0000021658B57F40>
是我环境有问题,还是真的链接失效了?

@ice-orange-xi
Copy link
Author

File "\real-url\venv\lib\site-packages\aiohttp\connector.py", line 973, in _wrap_create_connection
raise ClientConnectorSSLError(req.connection_key, exc) from exc

@wbt5
Copy link
Owner

wbt5 commented Dec 5, 2021

@ice-orange-xi 测试正常。看错误提示可能是本地网络有问题。

@wbt5 wbt5 added wontfix This will not be worked on Worksforme 😕 labels Dec 5, 2021
@ice-orange-xi
Copy link
Author

大佬,我爱奇艺、虎牙、bilibili都可以,就斗鱼不行。 @wbt5

@ice-orange-xi
Copy link
Author

Traceback (most recent call last):
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\connector.py", line 969, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "D:\devSoftWare\Python\Python310\lib\asyncio\base_events.py", line 1080, in create_connection
transport, protocol = await self._create_connection_transport(
File "D:\devSoftWare\Python\Python310\lib\asyncio\base_events.py", line 1110, in _create_connection_transport
await waiter
File "D:\devSoftWare\Python\Python310\lib\asyncio\sslproto.py", line 528, in data_received
ssldata, appdata = self._sslpipe.feed_ssldata(data)
File "D:\devSoftWare\Python\Python310\lib\asyncio\sslproto.py", line 188, in feed_ssldata
self._sslobj.do_handshake()
File "D:\devSoftWare\Python\Python310\lib\ssl.py", line 974, in do_handshake
self._sslobj.do_handshake()
ssl.SSLError: [SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)

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

Traceback (most recent call last):
File "D:\gitSpace\GitHub\real-url\danmu\main.py", line 24, in
asyncio.run(main(a))
File "D:\devSoftWare\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "D:\devSoftWare\Python\Python310\lib\asyncio\base_events.py", line 641, in run_until_complete
return future.result()
File "D:\gitSpace\GitHub\real-url\danmu\main.py", line 20, in main
await dmc.start()
File "D:\gitSpace\GitHub\real-url\danmu\danmaku_init_.py", line 224, in start
await self.init_ws()
File "D:\gitSpace\GitHub\real-url\danmu\danmaku_init_.py", line 72, in init_ws
self.__ws = await self.__hs.ws_connect(ws_url)
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\client.py", line 754, in _ws_connect
resp = await self.request(
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\client.py", line 520, in _request
conn = await self._connector.connect(
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\connector.py", line 1051, in _create_direct_connection
raise last_exc
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\connector.py", line 1020, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "D:\gitSpace\GitHub\real-url\venv\lib\site-packages\aiohttp\connector.py", line 973, in _wrap_create_connection
raise ClientConnectorSSLError(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorSSLError: Cannot connect to host danmuproxy.douyu.com:8503 ssl:default [[SSL: SSLV3_ALERT_HANDSHAKE_FAILURE] sslv3 alert handshake failure (_ssl.c:997)]
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x000001DF33DC7F40>

我感觉八成是python版本及其他库的问题。

@ice-orange-xi
Copy link
Author

我解决了,3.10的版本有些库不兼容,我改成3.6也不行,最后换成3.7终于搞定了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on Worksforme 😕
Projects
None yet
Development

No branches or pull requests

2 participants