用 fix-protocol-version, unidbg-fetch-qsign 后出现Uin is not registered.
-
使用 sign服务登陆后出现
UnidbgFetchQsign: java.lang.IllegalStateException: Uin is not registered.
异常没有异常退出,但是过了一段时间又出现了一次
OS: Ubuntu (WSL1)
plugins:
fix-protocol-version : 1.9.6
unidbg-fetch-qsign: 1.1.5JVM 参数:
-dxyz.cssxsh.mirai.tool.KFCFactory.config=KFCFactory.json
启动代码:
FixProtocolVersion.load(BotConfiguration.MiraiProtocol.ANDROID_PAD); KFCFactory.install(); BotAuthorization password_authorization = BotAuthorization.byPassword(info.getPassword()); Bot bot = BotFactory.INSTANCE.newBot(info.getQQ(),password_authorization,new BotConfiguration() {{ setProtocol(switchProtocol(qqInfo)); if (qqInfo.getCacheDir() != null && !qqInfo.getCacheDir().equals("")) { setCacheDir(new File(qqInfo.getCacheDir())); } fileBasedDeviceInfo(qqInfo.getDevicesJson()); }}); bot.login(); bot.join();
日志:
__ __ _ _ | \/ (_) ___ _ __ ___ _ __ __ _ _ _| |_ | |\/| | |/ __| '__/ _ \| '_ \ / _` | | | | __| | | | | | (__| | | (_) | | | | (_| | |_| | |_ |_| |_|_|\___|_| \___/|_| |_|\__,_|\__,_|\__| Micronaut (v3.8.8) 08:02:36.141 [main] INFO i.m.context.env.DefaultEnvironment - Established active environments: [linux] 08:02:36.143 [main] INFO i.m.context.env.DefaultEnvironment - Established active environments: [linux] 08:02:36.155 [main] INFO i.m.context.DefaultBeanContext - Reading bootstrap environment configuration 08:02:36.366 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Starting... 08:02:36.534 [main] INFO com.zaxxer.hikari.HikariDataSource - HikariPool-1 - Start completed. WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 2023-07-18 08:02:38 W/EncryptService.alert: Encrypt service was loaded: KFCFactory(config=file:///home/ubuntu/opt/mirai/qq_number/KFCFactory.json) 2023-07-18 08:02:38 W/EncryptService.alert: All outgoing message may be leaked by this service. 2023-07-18 08:02:38 W/EncryptService.alert: Use this service if and only if you trusted this service and the service provider. 2023-07-18 08:02:38 W/EncryptService.alert: Service details: 2023-07-18 08:02:38 W/EncryptService.alert: `- Jvm Class: class xyz.cssxsh.mirai.tool.KFCFactory 2023-07-18 08:02:38 W/EncryptService.alert: `- ClassLoader: jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27 2023-07-18 08:02:38 W/EncryptService.alert: `- Source: file:/home/ubuntu/opt/mirai/qq_number/core-0.1-all.jar 2023-07-18 08:02:38 W/EncryptService.alert: `- Protected Domain: ProtectionDomain (file:/home/ubuntu/opt/mirai/qq_number/core-0.1-all.jar <no signer certificates>) jdk.internal.loader.ClassLoaders$AppClassLoader@5ffd2b27 <no principals> java.security.Permissions@758ac46 ( ("java.net.SocketPermission" "localhost:0" "listen,resolve") ("java.io.FilePermission" "/home/ubuntu/opt/mirai/qq_number/core-0.1-all.jar#plus" "read") ("java.io.FilePermission" "/home/ubuntu/opt/mirai/qq_number/core-0.1-all.jar" "read") ("java.lang.RuntimePermission" "accessClassInPackage.com.sun.beans.*") ("java.lang.RuntimePermission" "accessClassInPackage.com.apple.*") ("java.lang.RuntimePermission" "accessClassInPackage.com.sun.java.swing.plaf.*") ("java.lang.RuntimePermission" "exitVM") ("java.lang.RuntimePermission" "accessClassInPackage.com.sun.beans") ("java.util.PropertyPermission" "java.specification.version" "read") ("java.util.PropertyPermission" "java.vm.vendor" "read") ("java.util.PropertyPermission" "path.separator" "read") ("java.util.PropertyPermission" "os.version" "read") ("java.util.PropertyPermission" "java.vendor.url" "read") ("java.util.PropertyPermission" "java.vm.name" "read") ("java.util.PropertyPermission" "java.vm.specification.version" "read") ("java.util.PropertyPermission" "os.name" "read") ("java.util.PropertyPermission" "java.version" "read") ("java.util.PropertyPermission" "os.arch" "read") ("java.util.PropertyPermission" "java.specification.vendor" "read") ("java.util.PropertyPermission" "java.vm.specification.name" "read") ("java.util.PropertyPermission" "file.separator" "read") ("java.util.PropertyPermission" "line.separator" "read") ("java.util.PropertyPermission" "java.vm.specification.vendor" "read") ("java.util.PropertyPermission" "java.specification.name" "read") ("java.util.PropertyPermission" "java.vendor" "read") ("java.util.PropertyPermission" "java.vm.version" "read") ("java.util.PropertyPermission" "java.class.version" "read") ) 2023-07-18 08:02:38 V/Net qq_number: Validated caches. 2023-07-18 08:02:38 V/Net qq_number: Loading server list from cache. 2023-07-18 08:02:38 V/Net qq_number: Server list: 106.39.206.110:80, 114.221.149.227:8080, 49.7.253.58:443, 114.221.144.150:443, 183.47.102.213:8080, 49.7.253.214:443, 183.47.1027.107.174:8080, 121.229.94.224:80, msfwifi.3g.qq.com:8080. 2023-07-18 08:02:38 I/Bot qq_number: Loaded account secrets from local cache. 2023-07-18 08:02:38 I/UnidbgFetchQsign: Bot(qq_number) initialize by http://192.168.0.111:8091 2023-07-18 08:02:39 I/UnidbgFetchQsign: Bot(qq_number) register, The QQ has already loaded an instance, so this time it is deleting the existing instance and creating a new one. 2023-07-18 08:02:39 I/UnidbgFetchQsign: Bot(qq_number) initialize complete 2023-07-18 08:02:39 I/Net qq_number: ECDH key is valid. 2023-07-18 08:02:39 D/UnidbgFetchQsign: Bot(qq_number) custom_energy 810_a, success 2023-07-18 08:02:39 D/UnidbgFetchQsign: Bot(qq_number) sign wtlogin.exchange_emp, success 2023-07-18 08:02:39 V/Net qq_number: Send: wtlogin.exchange_emp(10:fast-login) 2023-07-18 08:02:39 V/UnidbgFetchQsign: Bot(qq_number) sendMessage trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish 2023-07-18 08:02:39 D/UnidbgFetchQsign: Bot(qq_number) sign trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish, success 2023-07-18 08:02:39 V/Net qq_number: Send: trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish(mobileqq.msf.security) 2023-07-18 08:02:40 I/Bot qq_number: Saved account secrets to local cache for fast login. 2023-07-18 08:02:40 V/Net qq_number: Recv: wtlogin.exchange_emp 2023-07-18 08:02:40 V/Net qq_number: Send: StatSvc.register(online) 2023-07-18 08:02:40 V/Net qq_number: Recv: trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish 2023-07-18 08:02:40 I/Bot qq_number: Login successful. 2023-07-18 08:02:40 I/Net qq_number: Server time updated, serverTime: 1689638560, diff: 0ms=0.0s 2023-07-18 08:02:40 V/Net qq_number: Recv: StatSvc.register 2023-07-18 08:02:40 V/Net qq_number: Loading BdhSession from cache file 2023-07-18 08:02:40 I/Net qq_number: Syncing friend message history... 2023-07-18 08:02:40 I/Net qq_number: Start loading friend list... 2023-07-18 08:02:40 V/Net qq_number: Send: StatSvc.GetDevLoginInfo(StatSvc.GetDevLoginInfo) 2023-07-18 08:02:40 I/Net qq_number: Start loading stranger list... 2023-07-18 08:02:40 I/Net qq_number: Start loading friendGroup list... 2023-07-18 08:02:40 V/Net qq_number: Send: OidbSvc.0x496(OidbSvc.0x496) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.getFriendGroupList(friendlist.getFriendGroupList) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.getFriendGroupList(friendlist.getFriendGroupList) 2023-07-18 08:02:40 V/Net qq_number: Send: OidbSvc.0x5d2_0(OidbSvc.0x5d2_0) 2023-07-18 08:02:40 V/Net qq_number: Recv: OidbSvc.0x5d2_0 2023-07-18 08:02:40 I/Net qq_number: Successfully loaded stranger list: 0 in total 2023-07-18 08:02:40 V/Net qq_number: Recv: StatSvc.GetDevLoginInfo 2023-07-18 08:02:40 I/Net qq_number: No OtherClient online. 2023-07-18 08:02:40 V/Net qq_number: Recv: OidbSvc.0x496 2023-07-18 08:02:40 I/Net qq_number: Start loading group list... 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopListReqV2(friendlist.GetTroopListReqV2) 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.getFriendGroupList 2023-07-18 08:02:40 V/Net qq_number: Loading friendGroup list: 4/4 2023-07-18 08:02:40 I/Net qq_number: Successfully loaded friendGroup list: 4 in total 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.getFriendGroupList 2023-07-18 08:02:40 V/Net qq_number: Loading friend list: 13/13 2023-07-18 08:02:40 I/Net qq_number: Successfully loaded friend list: 13 in total 2023-07-18 08:02:40 I/Net qq_number: Syncing friend message history: Success. 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopListReqV2 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 D/UnidbgFetchQsign: Bot(qq_number) submit trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish, submit success 2023-07-18 08:02:40 V/UnidbgFetchQsign: Bot(qq_number) sendMessage trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish 2023-07-18 08:02:40 D/UnidbgFetchQsign: Bot(qq_number) sign trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish, success 2023-07-18 08:02:40 V/Net qq_number: Send: trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish(mobileqq.msf.security) 2023-07-18 08:02:40 V/Net qq_number: Recv: trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 D/UnidbgFetchQsign: Bot(qq_number) submit trpc.o3.ecdh_access.EcdhAccess.SsoSecureA2Establish, submit success 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:40 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:40 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:41 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:41 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:41 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:41 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:41 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:41 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:41 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:41 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:42 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:42 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:42 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:42 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:42 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:42 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:42 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:42 V/Net qq_number: Send: friendlist.GetTroopMemberListReq(friendlist.GetTroopMemberListReq) 2023-07-18 08:02:42 V/Net qq_number: Recv: friendlist.GetTroopMemberListReq 2023-07-18 08:02:42 I/Net qq_number: Successfully loaded group list: 8 in total. 2023-07-18 08:02:42 V/Bot qq_number: Event: BotOnlineEvent(bot=Bot(qq_number)) 2023-07-18 08:02:42 I/Bot qq_number: Bot login successful. 2023-07-18 08:02:42 I/Net qq_number: Scheduled key refresh in 23h 55min 0.0s. 2023-07-18 08:02:42 I/Net qq_number: Scheduled refresh login session in 19d 23h 55min 0.0s. 2023-07-18 08:02:43 V/Net qq_number: Server list: 222.94.109.78:80, msfwifi.3g.qq.com:8080, 49.7.253.177:443, 117.62.243.221:443, 183.47.102.193:8080, 42.81.192.158:443, 180.101..47.126.26:8080, 183.47.101.221:14000, 106.39.206.110:80. 2023-07-18 08:02:43 V/Net qq_number: Saving bdh session to cache 2023-07-18 08:02:43 V/Net qq_number: Saving server list to cache 2023-07-18 08:02:43 V/Net qq_number: Send: ConfigPushSvc.PushResp(ConfigPushSvc.PushResp) 2023-07-18 08:02:43 V/Net qq_number: Recv: ConfigPushSvc.PushReq 2023-07-18 08:02:43 V/Net qq_number: Saving bdh session to cache 2023-07-18 08:02:43 V/Net qq_number: Send: ConfigPushSvc.PushResp(ConfigPushSvc.PushResp) 2023-07-18 08:02:43 V/Net qq_number: Recv: ConfigPushSvc.PushReq 2023-07-18 08:42:40 E/UnidbgFetchQsign: java.lang.IllegalStateException: Uin is not registered. java.lang.IllegalStateException: Uin is not registered. at xyz.cssxsh.mirai.tool.UnidbgFetchQsign.requestToken(UnidbgFetchQsign.kt:157) at xyz.cssxsh.mirai.tool.UnidbgFetchQsign.access$requestToken(UnidbgFetchQsign.kt:12) at xyz.cssxsh.mirai.tool.UnidbgFetchQsign$qSecurityGetSign$1.invokeSuspend(UnidbgFetchQsign.kt:113) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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) 2023-07-18 09:22:40 E/UnidbgFetchQsign: java.lang.IllegalStateException: Uin is not registered. java.lang.IllegalStateException: Uin is not registered. at xyz.cssxsh.mirai.tool.UnidbgFetchQsign.requestToken(UnidbgFetchQsign.kt:157) at xyz.cssxsh.mirai.tool.UnidbgFetchQsign.access$requestToken(UnidbgFetchQsign.kt:12) at xyz.cssxsh.mirai.tool.UnidbgFetchQsign$qSecurityGetSign$1.invokeSuspend(UnidbgFetchQsign.kt:113) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106) 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)
-
同样遇到了
-
at xyz.cssxsh.mirai.tool.UnidbgFetchQsign.requestToken(UnidbgFetchQsign.kt:157)
-
QQ机器人 重新登录就可以了。出现这个问题我也经常遇到,还有一个 bug 不知道是登录多了还是运行久了签名服务器会死机,这些bug我都懒的去提交
-
今天刚弄好这俩的部署,不到20分钟就出现了该问题……
-
@Rean 我也是同样问题,但是每次登录之后一二十分钟就会出现报错,请问有没有除了重启以外的办法?