Skip to content
This repository was archived by the owner on Oct 12, 2025. It is now read-only.
This repository was archived by the owner on Oct 12, 2025. It is now read-only.

[Bug?]: 连接出现 Value cannot be null. (Parameter 'source') #892

@Kirito520Asuna

Description

@Kirito520Asuna

请确保您已阅读以上注意事项,并勾选下方的确认框。

  • 我已经仔细阅读上述内容
  • 我已经使用 最新构建 测试过,问题依旧存在。
  • 我已经在 Issue Tracker 中找过我要提出的问题,没有找到相同问题的ISSUE。
  • 我已知晓并同意,此处仅用于汇报程序中存在的问题。若这个 Issue 是关于其他非程序本身问题,则我的 Issue 可能会被无条件自动关闭或/并锁定。(其它疑问请考虑加入TG群询问或在discussions中提问)

Lagrange项目

Core

所使用/依赖的Lagrange项目对应的commit

Aug 2

运行环境

Linux

运行架构

x64

连接方式

None

重现步骤

Image Image

期望的结果是什么?

正常连接

实际的结果是什么?

报错

简单的复现代码/链接(可选)

Trace 级别日志记录(可选)

info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [WtExchangeLogic] [INFORMATION]: Session has not expired, using session to login and register status
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [WtExchangeLogic] [INFORMATION]: Register Status: register success
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [WtExchangeLogic] [INFORMATION]: AutoReLogin Enabled, session would be refreshed in 15 days period
info: Lagrange.OneBot.Core.Login.LoginService[0]
      Bot Uin: 264353165
info: Lagrange.OneBot.Core.Network.LagrangeWebSvcCollection[1]
      [LagrangeWebSvcCollection]: Multi Connection has been configured
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: /Lagrange.OneBot/bin/Release/net9.0/linux-x64/publish
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [ServiceContext] [INFORMATION]: Unsupported SSOFrame Received: trpc.msg.register_proxy.RegisterProxy.PushParams
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [ServiceContext] [INFORMATION]: Unsupported SSOFrame Received: trpc.msg.register_proxy.RegisterProxy.InfoSyncPush
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [ServiceContext] [INFORMATION]: Unsupported SSOFrame Received: trpc.msg.register_proxy.RegisterProxy.InfoSyncPush
info: Lagrange.OneBot.Core.Network.Service.ReverseWSService[1002]
      [ReverseWSService] Reconnecting cfa7e187-e793-447f-a4a6-78887b97ed98 at interval of 5000
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [ServiceContext] [INFORMATION]: Unsupported SSOFrame Received: trpc.msg.register_proxy.RegisterProxy.InfoSyncPush
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:46] [ServiceContext] [INFORMATION]: Unsupported SSOFrame Received: trpc.msg.register_proxy.RegisterProxy.InfoSyncPush
info: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:49] [ServiceContext] [INFORMATION]: Unsupported SSOFrame Received: ConfigPushSvc.PushReq
warn: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:53] [BusinessContext] [WARNING]: Error when processing the event: Lagrange.Core.Internal.Event.System.FetchCookieEvent
warn: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:53] [BusinessContext] [WARNING]: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
         at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
         at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
         at Lagrange.Core.Internal.Service.System.FetchCookieService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, FetchCookieEvent& output, List`1& extraEvents)
         at Lagrange.Core.Internal.Service.BaseService`1.Lagrange.Core.Internal.Service.IService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, ProtocolEvent& output, List`1& extraEvents)
         at Lagrange.Core.Internal.Context.ServiceContext.ResolveEventByPacket(SsoPacket packet)
         at Lagrange.Core.Internal.Context.BusinessContext.SendEvent(ProtocolEvent event)
warn: Lagrange.OneBot.Core.Operation.OperationService[0]
      Unexpected error encountered while handling message.
      System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
         at System.Collections.Generic.List`1.get_Item(Int32 index)
         at Lagrange.OneBot.Core.Notify.TicketService.GetCookies(String domain)
         at Lagrange.OneBot.Core.Operation.Generic.GetCookiesOperation.HandleOperation(BotContext context, JsonNode payload)
         at Lagrange.OneBot.Core.Operation.OperationService.HandleOperation(MsgRecvEventArgs e)
warn: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:53] [BusinessContext] [WARNING]: Error when processing the event: Lagrange.Core.Internal.Event.System.FetchCookieEvent
warn: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:53] [BusinessContext] [WARNING]: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
         at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
         at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
         at Lagrange.Core.Internal.Service.System.FetchCookieService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, FetchCookieEvent& output, List`1& extraEvents)
         at Lagrange.Core.Internal.Service.BaseService`1.Lagrange.Core.Internal.Service.IService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, ProtocolEvent& output, List`1& extraEvents)
         at Lagrange.Core.Internal.Context.ServiceContext.ResolveEventByPacket(SsoPacket packet)
         at Lagrange.Core.Internal.Context.BusinessContext.SendEvent(ProtocolEvent event)
warn: Lagrange.OneBot.Core.Operation.OperationService[0]
      Unexpected error encountered while handling message.
      System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
         at System.Collections.Generic.List`1.get_Item(Int32 index)
         at Lagrange.OneBot.Core.Notify.TicketService.GetCookies(String domain)
         at Lagrange.OneBot.Core.Operation.Generic.GetCookiesOperation.HandleOperation(BotContext context, JsonNode payload)
         at Lagrange.OneBot.Core.Operation.OperationService.HandleOperation(MsgRecvEventArgs e)
warn: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:53] [BusinessContext] [WARNING]: Error when processing the event: Lagrange.Core.Internal.Event.System.FetchCookieEvent
warn: Lagrange.Core.BotContext[0]
      [2025-09-08 09:59:53] [BusinessContext] [WARNING]: System.ArgumentNullException: Value cannot be null. (Parameter 'source')
         at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
         at System.Linq.Enumerable.Select[TSource,TResult](IEnumerable`1 source, Func`2 selector)
         at Lagrange.Core.Internal.Service.System.FetchCookieService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, FetchCookieEvent& output, List`1& extraEvents)
         at Lagrange.Core.Internal.Service.BaseService`1.Lagrange.Core.Internal.Service.IService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, ProtocolEvent& output, List`1& extraEvents)
         at Lagrange.Core.Internal.Context.ServiceContext.ResolveEventByPacket(SsoPacket packet)
         at Lagrange.Core.Internal.Context.BusinessContext.SendEvent(ProtocolEvent event)
warn: Lagrange.OneBot.Core.Operation.OperationService[0]
      Unexpected error encountered while handling message.
      System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. (Parameter 'index')
         at System.Collections.Generic.List`1.get_Item(Int32 index)
         at Lagrange.OneBot.Core.Notify.TicketService.GetCookies(String domain)
         at Lagrange.OneBot.Core.Operation.Generic.GetCookiesOperation.HandleOperation(BotContext context, JsonNode payload)
         at Lagrange.OneBot.Core.Operation.OperationService.HandleOperation(MsgRecvEventArgs e)

补充说明(可选)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug?Maybe it's a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions