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

尝试修复首次登录时容易出现 code -10005 和 packet timed out 的问题 #2463

Merged
merged 3 commits into from
Oct 9, 2023

Conversation

1umine
Copy link
Contributor

@1umine 1umine commented Oct 4, 2023

  • 此问题猜测可能是成功登录前无法向服务器发送 sso packet 并获取结果。 在有 callback 之前似乎没有出现这个问题,怀疑是这里的问题。 callback 改成等待至bot在线再提交初始化包以尝试解决
  • sign submit 内容改为仅在 debug 模式下打印

看到很多有这个问题的基本都是 bot 不是在线状态(没有登录成功)时出现,应该是这个导致的(

* 此问题猜测可能是成功登录前无法向服务器发送sso packet并获取结果。
  在有callback之前似乎没有出现这个问题,怀疑是这里的问题。
  等待 100s 后(以等待完成过滑块)再提交初始化包以尝试解决
* sign submit 内容改为仅在debug模式下打印
* 在“群消息发送失败: 账号可能被风控”的时候提供group_id
moeKedama added a commit to moeKedama/go-cqhttp that referenced this pull request Oct 5, 2023
@zhaodice
Copy link
Contributor

zhaodice commented Oct 6, 2023

你是对的,作为目前在写协议的人,我很负责任跟你说,在登录成功之前,fekit的发包结果不会得到回应,我的做法是先写个变量,block=true时,fekit包会被塞入队列。block=false时,再逐步发送这些包,登录成功block=false,未登录时block=true

(延迟,说实话我当时也考虑过,但感觉有点石山,因为还要考虑登录成功后又掉线的问题)

* 等待至 bot 在线再发包,而不是简单地等待 100s
@fumiama fumiama merged commit bd785d3 into Mrs4s:dev Oct 9, 2023
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants