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

ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 8888) #22

Open
tashuozhishinanguimi opened this issue Aug 22, 2023 · 0 comments

Comments

@tashuozhishinanguimi
Copy link

Exception in thread Thread-1:
Traceback (most recent call last):
File "d:\xunihuanjing\lib\site-packages\aiohttp\connector.py", line 980, in _wrap_create_connection
return await self._loop.create_connection(*args, **kwargs) # type: ignore[return-value] # noqa
File "D:\python\lib\asyncio\base_events.py", line 1065, in create_connection
raise exceptions[0]
File "D:\python\lib\asyncio\base_events.py", line 1050, in create_connection
sock = await self._connect_sock(
File "D:\python\lib\asyncio\base_events.py", line 961, in _connect_sock
await self.sock_connect(sock, address)
File "D:\python\lib\asyncio\selector_events.py", line 500, in sock_connect
return await fut
File "D:\python\lib\asyncio\selector_events.py", line 535, in _sock_connect_cb
raise OSError(err, f'Connect call failed {address}')
ConnectionRefusedError: [Errno 10061] Connect call failed ('127.0.0.1', 8888)

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

Traceback (most recent call last):
File "D:\python\lib\threading.py", line 980, in _bootstrap_inner
self.run()
File "D:\python\lib\threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "D:\xunihuanjing\GPT-vup-2.0\src\core\main.py", line 36, in dy_producer
t_loop.run(dy_connect())
File "D:\xunihuanjing\GPT-vup-2.0\src\utils\utils.py", line 40, in run
self.loop.run_until_complete(coroutine)
File "D:\python\lib\asyncio\base_events.py", line 647, in run_until_complete
return future.result()
File "D:\xunihuanjing\GPT-vup-2.0\src\rooms\douyin.py", line 54, in dy_connect
async with session.ws_connect("ws://127.0.0.1:8888") as ws:
File "d:\xunihuanjing\lib\site-packages\aiohttp\client.py", line 1141, in aenter
self._resp = await self._coro
File "d:\xunihuanjing\lib\site-packages\aiohttp\client.py", line 779, in _ws_connect
resp = await self.request(
File "d:\xunihuanjing\lib\site-packages\aiohttp\client.py", line 536, in _request
conn = await self._connector.connect(
File "d:\xunihuanjing\lib\site-packages\aiohttp\connector.py", line 540, in connect
proto = await self._create_connection(req, traces, timeout)
File "d:\xunihuanjing\lib\site-packages\aiohttp\connector.py", line 901, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "d:\xunihuanjing\lib\site-packages\aiohttp\connector.py", line 1209, in _create_direct_connection
raise last_exc
File "d:\xunihuanjing\lib\site-packages\aiohttp\connector.py", line 1178, in _create_direct_connection
transp, proto = await self._wrap_create_connection(
File "d:\xunihuanjing\lib\site-packages\aiohttp\connector.py", line 988, in _wrap_create_connection
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host 127.0.0.1:8888 ssl:default [Connect call failed ('127.0.0.1', 8888)]

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