Comments (12)
我这边也差不多一样, mirai-core 2.16.0,协议用的 ANDROID_PHONE 8.9.90,但是在主机下挂同一个账号的 QQNT 就能一直挂住,挺神奇的
from mirai.
有解决办法了么 搞得我很头疼
from mirai.
我这边也差不多一样, mirai-core 2.16.0,协议用的 ANDROID_PHONE 8.9.90,但是在主机下挂同一个账号的 QQNT 就能一直挂住,挺神奇的
可以想办法 解决么
from mirai.
急求急求
from mirai.
问题描述
二维码登录后不到1分钟,报错Timeout waiting for ConfigPush.然后退出登录!
复现
日志如下 2023-12-20 11:38:03 I/Net 1342081703: Successfully loaded group list: 71 in total. 2023-12-20 11:38:03 I/Net 1342081703: Scheduled refresh login session in 19d 23h 55min 0.0s. 2023-12-20 11:38:03 I/Net 1342081703: Scheduled key refresh in 23h 55min 0.0s. 2023-12-20 11:38:03 V/Bot 1342081703: Event: BotOnlineEvent(bot=Bot(1342081703)) 2023-12-20 11:38:03 I/Bot 1342081703: Bot login successful. 2023-12-20 11:38:04 I/Net 1342081703: Syncing friend message history: Success. 2023-12-20 11:39:03 W/Net 1342081703: Missing ConfigPush. Switching server... 2023-12-20 11:39:03 V/Bot 1342081703: Event: BotOfflineEvent.RequireReconnect(bot=Bot(1342081703), cause=java.lang.IllegalStateException: Timeout waiting for ConfigPush., reconnect=true) 2023-12-20 11:39:03 W/Bot 1342081703: Connection lost, reconnecting... (java.lang.IllegalStateException: Timeout waiting for ConfigPush.) 2023-12-20 11:39:03 V/Bot 1342081703: Event: BotOfflineEvent.Active(bot=Bot(1342081703), cause=java.lang.IllegalStateException: Timeout waiting for ConfigPush., reconnect=false) 2023-12-20 11:39:03 I/Bot 1342081703: Bot is closed manually with exception: java.lang.IllegalStateException: Timeout waiting for ConfigPush. java.lang.IllegalStateException: Timeout waiting for ConfigPush. at net.mamoe.mirai.internal.network.components.ConfigPushProcessorImpl.syncConfigPush(ConfigPushProcessor.kt:45) at net.mamoe.mirai.internal.network.components.ConfigPushProcessorImpl$syncConfigPush$1.invokeSuspend(ConfigPushProcessor.kt) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.internal.ScopeCoroutine.afterResume(Scopes.kt:33) at kotlinx.coroutines.AbstractCoroutine.resumeWith(AbstractCoroutine.kt:102) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:46) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:104) at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:570) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:677) at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:664)
mirai-core 版本
2.16.0
bot-protocol
ANDROID_WATCH
其他组件版本
No response
系统日志
No response
网络日志
No response
补充信息
No response
大佬有方案了么
from mirai.
我这也碰到了, mirai-core 2.16.0,协议是 ANDROID_PAD 8.9.83,而且出现的概率还挺高的。
from mirai.
我提交了个补丁也许可以修复
from mirai.
我提交了个补丁也许可以修复
在哪里可能看到你的补丁
from mirai.
我提交了个补丁也许可以修复
可能会导致不停反复登陆
from mirai.
我提交了个补丁也许可以修复
可能会导致不停反复登陆
所以自己改吧!我把timeout改成了小时级
from mirai.
我提交了个补丁也许可以修复
可能会导致不停反复登陆
所以自己改吧!我把timeout改成了小时级
请问timeout在哪里设置呢?在mirai-core的开发中
from mirai.
我提交了个补丁也许可以修复
可能会导致不停反复登陆
所以自己改吧!我把timeout改成了小时级
请问timeout在哪里设置呢?在mirai-core的开发中
/*
* Copyright 2019-2022 Mamoe Technologies and contributors.
*
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
*
* https://github.com/mamoe/mirai/blob/dev/LICENSE
*/
package net.mamoe.mirai.internal.network.components
import kotlinx.coroutines.withTimeoutOrNull
import net.mamoe.mirai.event.EventPriority
import net.mamoe.mirai.event.events.BotOfflineEvent
import net.mamoe.mirai.event.globalEventChannel
import net.mamoe.mirai.event.nextEvent
import net.mamoe.mirai.internal.network.component.ComponentKey
import net.mamoe.mirai.internal.network.handler.NetworkHandler
import net.mamoe.mirai.internal.network.handler.selector.NetworkException
import net.mamoe.mirai.internal.network.protocol.packet.login.ConfigPushSvc
import net.mamoe.mirai.utils.MiraiLogger
import net.mamoe.mirai.utils.warning
/**
* Job: Switch server if ConfigPush not received.
*/
internal interface ConfigPushProcessor {
suspend fun syncConfigPush(network: NetworkHandler)
companion object : ComponentKey<ConfigPushProcessor>
}
internal class ConfigPushProcessorImpl(
private val logger: MiraiLogger,
) : ConfigPushProcessor {
override suspend fun syncConfigPush(network: NetworkHandler) {
val resp = withTimeoutOrNull(60_000 * 30) {
globalEventChannel().nextEvent<ConfigPushSvc.PushReq.PushReqResponse>(
EventPriority.MONITOR
) { it.bot == network.context.bot }
}
if (resp == null) {
val bdhSyncer = network.context[BdhSessionSyncer]
if (!bdhSyncer.hasSession) {
//val e = IllegalStateException("Timeout waiting for ConfigPush.")
/*
val e = NetworkException("Timeout waiting for ConfigPush.",true)
bdhSyncer.bdhSession.completeExceptionally(e)
logger.warning { "Missing ConfigPush. Switching server..." }
network.context[SsoProcessor].casFirstLoginResult(null, FirstLoginResult.CHANGE_SERVER)
network.context.bot.components[EventDispatcher].broadcastAsync(
BotOfflineEvent.RequireReconnect(
network.context.bot,
e
)
)*/
logger.warning { "Missing ConfigPush. 丢失BDH通道,可能无法正常上传媒体数据,重启可能会解决问题" }
}
}
}
}
from mirai.
Related Issues (20)
- 在 MultiMsg.ApplyDown 时遇到了意料之中的问题. 请完整复制此日志提交
- 在 MultiMsg.ApplyDown 时遇到了意料之中的问题
- QQ官方升级机器人后,mirai可能无法监听到群聊中官方机器人的回复消息
- 升级为2.15.0-M1 之后,不能直接读取BOT对象 HOT 2
- [Bug] mirai日志把2023年12月31日错误命名到了2024年12月31日
- 大群未读群消息过多时,群消息事件无法捕获消息
- There must be a COLON between class key and value but found STRING for setting出错
- 发送群消息失败报错(resultType=55) HOT 1
- 在 GroupImpl 时遇到了意料之中的问题. 请完整复制此日志提交给 mirai
- 在群管理员批量踢人后发生大量报错且无法自动恢复正常 HOT 3
- 扫码登录之后不久就会出现bug HOT 2
- mirai-core-jvm 版本2.16.0模块开发,登录报45 HOT 2
- MiraiLogger遇到换行符后似乎会中断绿色字体的显示
- 在试图连接机器人时出现以下报错 HOT 2
- 支持群表情回应 HOT 1
- 关于java的消息链判断消息类型问题 HOT 1
- 启动一段时间以后,只能接收消息,qq收不到回复的消息 HOT 2
- 无法登录qq账号 HOT 1
- 支持官方机器人新支持的markdown格式消息 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mirai.