2021-09-07 23:35:56 I/net.mamoe.mirai-api-http: Starting Mirai HTTP Server in localhost:8080
且已经在windows防火墙放通8080端口
但仍然无法连接
[2021-09-07 23:53:36,605][INFO]: initializing app...
modules.5000zhao::模块加载成功!!!
modules.AbbreviatedPrediction::模块加载成功!!!
modules.BangumiInfoSearcher::模块加载成功!!!
modules.BilibiliBangumiSchedule::模块加载成功!!!
modules.ChatBot::模块加载成功!!!
modules.GarbageClassification::模块加载成功!!!
modules.ImageSender::模块加载成功!!!
modules.KeywordDetection::模块加载成功!!!
modules.KeywordReply::模块加载成功!!!
modules.LeetcodeInfoCrawer::模块加载成功!!!
modules.MessagePrinter::模块加载成功!!!
modules.NetworkCompiler::模块加载成功!!!
modules.NiBuNengXXMa::模块加载成功!!!
modules.PhantomTank::模块加载成功!!!
modules.PixivImageSearcher::模块加载成功!!!
modules.PornhubStyleLogoGenerator::模块加载成功!!!
modules.Repeater::模块加载成功!!!
modules.SteamGameSearcher::模块加载成功!!!
modules.WeiboHotSearch::模块加载成功!!!
modules.ZhihuHotSearch::模块加载成功!!!
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\connector.py", line 969, in _wrap_create_connecti
on
return await self._loop.create_connection(*args, **kwargs) # type: ignore # noqa
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1056, in create_connection
raise exceptions[0]
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 1041, in create_connection
sock = await self._connect_sock(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 955, in _connect_sock
await self.sock_connect(sock, address)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\proactor_events.py", line 702, in sock_connect
return await self._proactor.connect(sock, address)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 812, in _poll
value = callback(transferred, key, ov)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\windows_events.py", line 599, in finish_connect
ov.getresult()
ConnectionRefusedError: [WinError 1225] 远程计算机拒绝网络连接。
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "D:\mirai\main.py", line 42, in
app.launch_blocking()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\graia\application_init_.py", line 1613, in launch_bloc
king
loop.run_until_complete(self.initialize())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\asyncio\base_events.py", line 642, in run_until_complete
return future.result()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\graia\application_init_.py", line 1503, in initialize
await self.authenticate()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\graia\application\utilles.py", line 27, in wrapper
return await func(self, *args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\graia\application_init_.py", line 301, in authenticate
async with self.session.post(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\client.py", line 1117, in aenter
self._resp = await self._coro
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\client.py", line 520, in _request
conn = await self._connector.connect(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\connector.py", line 535, in connect
proto = await self._create_connection(req, traces, timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\connector.py", line 892, in _create_connection
_, proto = await self._create_direct_connection(req, traces, timeout)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\connector.py", line 1051, in _create_direct_conne
ction
raise last_exc
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\connector.py", line 1020, in _create_direct_conne
ction
transp, proto = await self._wrap_create_connection(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python39\lib\site-packages\aiohttp\connector.py", line 975, in _wrap_create_connecti
on
raise client_error(req.connection_key, exc) from exc
aiohttp.client_exceptions.ClientConnectorError: Cannot connect to host localhost:8080 ssl:default [远程计算机拒绝网络连接。]