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

常见无法连接问题汇总 #117

Closed
MrXiaoM opened this issue Dec 20, 2024 · 5 comments
Closed

常见无法连接问题汇总 #117

MrXiaoM opened this issue Dec 20, 2024 · 5 comments
Labels
question 对错误或其它问题进行提问

Comments

@MrXiaoM
Copy link
Owner

MrXiaoM commented Dec 20, 2024

如题,在这个 issue 记录一些无法连接到 Onebot 的情况的说明。

Repository owner locked and limited conversation to collaborators Dec 20, 2024
@MrXiaoM MrXiaoM added the question 对错误或其它问题进行提问 label Dec 20, 2024
@MrXiaoM MrXiaoM pinned this issue Dec 20, 2024
@MrXiaoM MrXiaoM closed this as completed Dec 20, 2024
@MrXiaoM
Copy link
Owner Author

MrXiaoM commented Dec 20, 2024

#106 #116

ntqq api timeout

[get_friend_list] 请求失败: app=LLOneBot v4.1.4, message=ntqq api timeout IPC_UP_3, ns-NodeStoreApi-3, getBuddyList, [false]

不是 Overflow 的问题,请尝试升级或降级 LLOnebot。如有必要,请向相关 Onebot 实现提交 Issues。

@MrXiaoM
Copy link
Owner Author

MrXiaoM commented Dec 20, 2024

#90

连接到 NapCat,60秒后自动断开连接

▌ 服务器连接因 未知原因 已关闭 (关闭码: ABNORMAL_CLOSE)

常见于 Linux 系统,大约由 Java-WebSocket 的心跳机制引起,到配置文件 overflow.jsonheartbeat_check_seconds 设为 0,关闭心跳机制即可。

@MrXiaoM
Copy link
Owner Author

MrXiaoM commented Dec 20, 2024

关闭码具体都是什么意思

关闭码是 RFC 6455 WebSocket 协议标准的内容。

「关闭码」对应的数值请到 ConnectFactory.kt 查看。

数值对应的说明文档请翻阅 RFC 6455 协议标准的文档,7.4.1 章节
https://datatracker.ietf.org/doc/html/rfc6455#section-7.4.1
(不知道文档网站什么毛病,ID 没成功转跳,可能需要你自己去目录点击 7.4.1 来转跳)

@MrXiaoM
Copy link
Owner Author

MrXiaoM commented Dec 20, 2024

#72

获取群聊/好友列表超时

[get_group_list] 请求失败: Timed out waiting for XXXXXX ms。

可能你的群或好友有点多,拉取需要的时间超出了预期的时间,在启动参数添加

-Doverflow.timeout=20000

以修改超时时间。

如果还是超时,把时间 20000 再调高点,时间单位是 毫秒

@MrXiaoM
Copy link
Owner Author

MrXiaoM commented Jan 27, 2025

#68 #70

群活跃 / 需要账号凭证的接口 访问错误

[get_credentials] 请求失败: ***
[get_csrf_token] 请求失败: ***
[get_cookies] 请求失败: ***
...
at top.mrxiaom.overflow.internal.utils.BotUtilsKt$httpGet$2.invokeSuspend(BotUtils.kt:90)
...

群活跃(群员等级、群荣誉等等)信息复制自 mirai 原本的实现,即获取账号凭证然后访问相关的 http 接口。

由于支持获取完整账号凭证(即 get_credentials 接口)的 Onebot 实现极少,这块在写好之后就一直没有测试,不一定可以使用。

如果出现类似的报错,请开启 overflow.json 中的 no_platform 选项,以关闭所有需要使用账号凭证的接口。

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question 对错误或其它问题进行提问
Projects
None yet
Development

No branches or pull requests

1 participant