Closed gzx7301 closed 1 month ago
前端 shamrock 1.0.7-dev.6201d12 - Xpoed
查分器服务器在香港,获取b50超时得自己查网络问题
尝试使用
--method POST \
--timeout=0 \
--header 'Content-Type: application/json' \
--header 'Accept: */*' \
--header 'Host: www.diving-fish.com' \
--header 'Connection: keep-alive' \
--body-data '{
"qq": 1537324535,
"username": "gzx7301"
}' \
'https://www.diving-fish.com/api/maimaidxprober/query/player'
后可以正常获取到player文件 文件内容也是正确的 不像是网络问题吧...
我看了下你的log,好像是你的bot客户端与shamrock传输超时,maimai插件不用websocket,用的httpx模块仅使用http访问
最上面的一个Traceback在发送消息的时候超时
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/uvicorn/protocols/websockets/websockets_impl.py", line 332, in asgi_send
await self.send(data) # type: ignore[arg-type]
File "/usr/local/lib/python3.9/dist-packages/websockets/legacy/protocol.py", line 647, in send
await self.write_frame(True, opcode, data)
File "/usr/local/lib/python3.9/dist-packages/websockets/legacy/protocol.py", line 1209, in write_frame
await self.drain()
File "/usr/local/lib/python3.9/dist-packages/websockets/legacy/protocol.py", line 1198, in drain
await self.ensure_open()
File "/usr/local/lib/python3.9/dist-packages/websockets/legacy/protocol.py", line 939, in ensure_open
raise self.connection_closed_exc()
websockets.exceptions.ConnectionClosedError: no close frame received or sent
看到了~谢谢 我这边检查确认了一下 确实是nonebot和shamrock之间的连接问题 我这边尝试换了FastApi+WebSocker驱动器目前改善了 希望他能多跑一阵吧
大家好啊我又来了15日晚间出现此类问题 有时获取B50需要1分钟及以上的延迟 有时会发生上文的报错
VPS IP 38.150.. 已开启IPV4优先 网络环境可正常 wget https://www.diving-fish.com/api/maimaidxprober/music_data 并获得music_data.json 使用的版本是 c3ba722 Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux