MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接
    1. 主页
    2. KV557
    3. 主题
    K
    • 资料
    • 关注 0
    • 粉丝 0
    • 主题 3
    • 帖子 3
    • 最佳 0
    • 有争议的 0
    • 群组 0

    KV557 创建的主题

    • K

      登录时网络不稳定
      使用交流 • • KV557

      2
      0
      赞同
      2
      帖子
      573
      浏览

      K

      升到了2.14.0用了最新的验证程序 但是登录又报了网络不稳定 如何解决 谢谢!

      2023-02-10 13:11:45 W/Net *: Exception in resumeConnection. net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(*), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=) at net.mamoe.mirai.internal.network.handler.CommonNetworkHandler$StateConnecting$startState$2.invokeSuspend(CommonNetworkHandler.kt:248) 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.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) Caused by: net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(*), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:331) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.kt) ... 9 more 2023-02-10 13:11:45 W/Net *: Network selector received exception, closing bot. (net.mamoe.mirai.internal.network.components.LoginFailedExceptionAsNetworkException: Error(bot=Bot(*), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=)) Exception in thread "main" net.mamoe.mirai.network.WrongPasswordException: Error(bot=Bot(*), code=237, title=安全提醒, message=当前网络不稳定,登录失败。推荐使用常用设备或通过手机号登录。, errorInfo=) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl.doLogin(SsoProcessor.kt:331) at net.mamoe.mirai.internal.network.components.SsoProcessorImpl$SlowLoginImpl$doLogin$1.invokeSuspend(SsoProcessor.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.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)
    • K

      运行时okhttp报错
      开发交流 • • KV557

      1
      0
      赞同
      1
      帖子
      140
      浏览

      K

      core 2.13.0-RC2

      IDEA里调试的时候没有任何问题,打包出来使用okhttp就报错

      2022-11-16 11:17:47 I/Net *****: ECDH key is invalid, start to fetch e cdh public key from server. 2022-11-16 11:17:47 E/Net *****: Failed to fetch ECDH public key from server, using default key instead java.net.UnknownServiceException: Unable to find acceptable protocols. isFallbac k=false, modes=[ConnectionSpec(cipherSuites=[TLS_AES_128_GCM_SHA256, TLS_AES_256 _GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA2 56, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA3 84, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY130 5_SHA256, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_12 8_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_ 256_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA], tlsVersions=[TLS_1_3, TLS_1_2], sup portsTlsExtensions=true), ConnectionSpec()], supported protocols=[TLSv1.2] at okhttp3.internal.connection.ConnectionSpecSelector.configureSecureSoc ket(ConnectionSpecSelector.kt:63) at okhttp3.internal.connection.RealConnection.connectTls(RealConnection. kt:373) at okhttp3.internal.connection.RealConnection.establishProtocol(RealConn ection.kt:337) at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt: 209) at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFin der.kt:226) at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(Exch angeFinder.kt:106) at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74) at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt: 255) at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInter ceptor.kt:32) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt :95) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.k t:83) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndF ollowUpInterceptor.kt:76) at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorCha in.kt:109) at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$ okhttp(RealCall.kt:201) at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:517) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor. java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor .java:624) at java.lang.Thread.run(Thread.java:748)
    • K

      2.6.3升2.13.0找不到类
      开发交流 • • KV557

      2
      0
      赞同
      2
      帖子
      281
      浏览

      K

      为了解决过低版本QQ无法登录问题今天升了2.13.0 升完后运行报错

      java.util.ServiceConfigurationError: net.mamoe.mirai.IMirai: Provider net.mamoe.mirai.internal.MiraiImpl could not be instantiated Caused by: java.lang.NoClassDefFoundError: net/mamoe/mirai/internal/deps/io/ktor/client/engine/okhttp/OkHttp Caused by: java.lang.ClassNotFoundException: net.mamoe.mirai.internal.deps.io.ktor.client.engine.okhttp.OkHttp

      后来单独引入了ktor依赖但是类路径不对 mirai的ktor路径是net/mamoe/mirai/internal/deps/io/ktor/??
      但是mirai-core-utils里的net\mamoe\mirai\internal\deps\io\ktor下只有一个\utils没有\client(是我少包了吗

      附上deps:

      dependencies { implementation group: 'net.mamoe', name: 'mirai-core', version: '2.13.0' implementation group: 'net.mamoe', name: 'mirai-core-utils', version: '2.13.0' implementation group: 'net.mamoe', name: 'mirai-core-api', version: '2.13.0' }
    • 1 / 1