MiraiForum

    • 注册
    • 登录
    • 搜索
    • 热门
    • 最新
    • 未解决
    • 标签
    • 群组
    • 友情链接

    运行时okhttp报错

    开发交流
    1
    1
    140
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • K
      KV557 最后由 编辑

      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)
      
      1 条回复 最后回复 回复 引用 0
      • 1 / 1
      • First post
        Last post
      Powered by Mamoe Technologies & NodeBB | 友情链接 | 服务监控 | Contact