We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
OneBot
Lagrange.OneBot Version: 0.0.3+47b819d43ad101a1a066a3f8afa094d000fe19f5
Linux
x64
反向 WebSocket
较短时间内大量用户对机器人的请求
让Lagrange 稳定保持对机器人后端的连接
当较多用户在较短时间内请求机器人时,机器人后端和Lagrange 的websocket连接有几率断开,导致看Lagrange 日志是能收到消息但机器人后端(如koishi、nonebot2)收不到消息。大约在十几秒后连接恢复。
No response
warn: Lagrange.Core.BotContext[0] [2024-11-15 14:50:41] [BusinessContext] [WARNING]: Error when processing the event: Lagrange.Core.Internal.Event.Message.SendMessageEvent warn: Lagrange.Core.BotContext[0] [2024-11-15 14:50:41] [BusinessContext] [WARNING]: System.Net.Http.HttpRequestException: An error occurred while sending the request. ---> System.Net.Http.HttpIOException: The response ended prematurely. (ResponseEnded) at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) --- End of inner exception stack trace --- at System.Net.Http.HttpConnection.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.DiagnosticsHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpMessageHandlerStage.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.SocketsHttpHandler.Send(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.Send(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationToken cancellationToken) at System.Net.Http.HttpClient.Send(HttpRequestMessage request) at Lagrange.OneBot.Utility.OneBotSigner.Sign(String cmd, UInt32 seq, Byte[] body, Byte[]& e, String& t) at Lagrange.Core.Internal.Packets.SsoPacker.Build(SsoPacket packet, BotAppInfo appInfo, BotDeviceInfo device, BotKeystore keystore, SignProvider signProvider) at Lagrange.Core.Internal.Context.PacketContext.SendPacket(SsoPacket packet) at Lagrange.Core.Internal.Context.BusinessContext.SendEvent(ProtocolEvent event)
系统:Debian12 nonebot2和koishi均在物理机上运行 Lagrange在docker中运行,网络模式为hosts
The text was updated successfully, but these errors were encountered:
No branches or pull requests
请确保您已阅读以上注意事项,并勾选下方的确认框。
Lagrange项目
OneBot
所使用/依赖的Lagrange项目对应的commit
Lagrange.OneBot Version: 0.0.3+47b819d43ad101a1a066a3f8afa094d000fe19f5
运行环境
Linux
运行架构
x64
连接方式
反向 WebSocket
重现步骤
较短时间内大量用户对机器人的请求
期望的结果是什么?
让Lagrange 稳定保持对机器人后端的连接
实际的结果是什么?
当较多用户在较短时间内请求机器人时,机器人后端和Lagrange 的websocket连接有几率断开,导致看Lagrange 日志是能收到消息但机器人后端(如koishi、nonebot2)收不到消息。大约在十几秒后连接恢复。
简单的复现代码/链接(可选)
No response
Trace 级别日志记录(可选)
补充说明(可选)
系统:Debian12
nonebot2和koishi均在物理机上运行
Lagrange在docker中运行,网络模式为hosts
The text was updated successfully, but these errors were encountered: