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

[Bug]: 扫码登录完成后报错Not enough data to read #412

Closed
4 tasks done
tmdakm opened this issue Jun 13, 2024 · 4 comments
Closed
4 tasks done

[Bug]: 扫码登录完成后报错Not enough data to read #412

tmdakm opened this issue Jun 13, 2024 · 4 comments
Labels
duplicate This issue or pull request already exists

Comments

@tmdakm
Copy link

tmdakm commented Jun 13, 2024

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

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

Lagrange项目

OneBot

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

7d0b5c2

运行环境

Windows

运行架构

x64

连接方式

反向 WebSocket

重现步骤

下载一份Release里的最新Lagrange.Onebot 然后运行修改配置文件然后扫码登录
或使用Lagrange.Core 运行并扫码登录
登录完成后会出现报错

期望的结果是什么?

成功登录

实际的结果是什么?

登录完后循环报错

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

No response

Trace 级别日志记录(可选)

[2024-06-13 21:42:26] [WtExchangeLogic] [INFORMATION]: QrCode State Queried: WaitingForConfirm Uin: qq号
trce: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:28] [ServiceContext] [DEBUG]: Outgoing SSOFrame: wtlogin.trans_emp
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:28] [BusinessContext] [WARNING]: Error when processing the event: Lagrange.Core.Internal.Event.Login.TransEmpEvent
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:28] [BusinessContext] [WARNING]: Not enough data to read, remaining: 11 required: 65547
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:28] [BusinessContext] [WARNING]:    at Lagrange.Core.Utility.Binary.BinaryPacket.ReadBytes(Int32 count)
         at Lagrange.Core.Utility.Binary.BinaryPacket.ReadString(Prefix flag)
         at Lagrange.Core.Utility.Binary.BinarySerializer.<>c.<.cctor>b__7_19(BinaryPacket body, Prefix prefix)
         at Lagrange.Core.Utility.Binary.BinarySerializer.Deserialize(BinaryPacket body, Type type)
         at Lagrange.Core.Utility.Binary.Tlv.TlvPacker.ReadTlvBodyQrCode(UInt16 cmd, BinaryPacket packet)
         at Lagrange.Core.Utility.Binary.Tlv.TlvPacker.ReadTlvCollections(BinaryPacket payload, Boolean isQrCode)
         at Lagrange.Core.Internal.Packets.Login.WtLogin.Entity.TransEmp12.Deserialize(BinaryPacket packet, State& qrState)
         at Lagrange.Core.Internal.Service.Login.TransEmpService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, TransEmpEvent& 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)
trce: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:30] [ServiceContext] [DEBUG]: Outgoing SSOFrame: wtlogin.trans_emp
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:30] [BusinessContext] [WARNING]: Error when processing the event: Lagrange.Core.Internal.Event.Login.TransEmpEvent
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:30] [BusinessContext] [WARNING]: Not enough data to read, remaining: 11 required: 65547
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:30] [BusinessContext] [WARNING]:    at Lagrange.Core.Utility.Binary.BinaryPacket.ReadBytes(Int32 count)
         at Lagrange.Core.Utility.Binary.BinaryPacket.ReadString(Prefix flag)
         at Lagrange.Core.Utility.Binary.BinarySerializer.<>c.<.cctor>b__7_19(BinaryPacket body, Prefix prefix)
         at Lagrange.Core.Utility.Binary.BinarySerializer.Deserialize(BinaryPacket body, Type type)
         at Lagrange.Core.Utility.Binary.Tlv.TlvPacker.ReadTlvBodyQrCode(UInt16 cmd, BinaryPacket packet)
         at Lagrange.Core.Utility.Binary.Tlv.TlvPacker.ReadTlvCollections(BinaryPacket payload, Boolean isQrCode)
         at Lagrange.Core.Internal.Packets.Login.WtLogin.Entity.TransEmp12.Deserialize(BinaryPacket packet, State& qrState)
         at Lagrange.Core.Internal.Service.Login.TransEmpService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, TransEmpEvent& 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)
trce: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:32] [ServiceContext] [DEBUG]: Outgoing SSOFrame: wtlogin.trans_emp
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:32] [BusinessContext] [WARNING]: Error when processing the event: Lagrange.Core.Internal.Event.Login.TransEmpEvent
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:32] [BusinessContext] [WARNING]: Not enough data to read, remaining: 11 required: 65547
warn: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:32] [BusinessContext] [WARNING]:    at Lagrange.Core.Utility.Binary.BinaryPacket.ReadBytes(Int32 count)
         at Lagrange.Core.Utility.Binary.BinaryPacket.ReadString(Prefix flag)
         at Lagrange.Core.Utility.Binary.BinarySerializer.<>c.<.cctor>b__7_19(BinaryPacket body, Prefix prefix)
         at Lagrange.Core.Utility.Binary.BinarySerializer.Deserialize(BinaryPacket body, Type type)
         at Lagrange.Core.Utility.Binary.Tlv.TlvPacker.ReadTlvBodyQrCode(UInt16 cmd, BinaryPacket packet)
         at Lagrange.Core.Utility.Binary.Tlv.TlvPacker.ReadTlvCollections(BinaryPacket payload, Boolean isQrCode)
         at Lagrange.Core.Internal.Packets.Login.WtLogin.Entity.TransEmp12.Deserialize(BinaryPacket packet, State& qrState)
         at Lagrange.Core.Internal.Service.Login.TransEmpService.Parse(Span`1 input, BotKeystore keystore, BotAppInfo appInfo, BotDeviceInfo device, TransEmpEvent& 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)
trce: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:33] [ServiceContext] [DEBUG]: Outgoing SSOFrame: Heartbeat.Alive
trce: Lagrange.Core.BotContext[0]
      [2024-06-13 21:42:34] [ServiceContext] [DEBUG]: Outgoing SSOFrame: wtlogin.trans_emp
warn: Lagrange.Core.BotContext[0]


### 补充说明(可选)

在Core和Onebot里面都会这样 开启/关闭VPN也尝试过了
@tmdakm tmdakm added the bug? Maybe it's a bug label Jun 13, 2024
@ghost ghost mentioned this issue Jun 21, 2024
4 tasks
@ghost ghost added the bug Something isn't working label Jun 21, 2024
@ghost ghost changed the title [Bug?]: 扫码登录完成后报错Not enough data to read [Bug]: 扫码登录完成后报错Not enough data to read Jun 21, 2024
@ssyximmlove
Copy link

发生了同样的问题,更换QQ号后消失

@xmbhjQAQ
Copy link

同样的问题

1 similar comment
@wling-art
Copy link

同样的问题

@pk5ls20 pk5ls20 added duplicate This issue or pull request already exists and removed bug Something isn't working bug? Maybe it's a bug labels Sep 4, 2024
@Linwenxuan04
Copy link
Contributor

修好了修好了

@pk5ls20 pk5ls20 closed this as completed Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

6 participants