代码之家  ›  专栏  ›  技术社区  ›  casolorz

javax.net.ssl.sslhandshakeexception:java.lang.illegalargumentexception:IP_nbae7bac35.kodrive.xyz的输入无效

  •  5
  • casolorz  · 技术社区  · 6 年前

    是否有解决此异常的方法?看着这个 issue on github 这听起来像是一个Android bug,关于主机名有一个下划线字符之类的。

    这是堆栈跟踪:

    javax.net.ssl.SSLHandshakeException: java.lang.IllegalArgumentException: Invalid input to toASCII: ip_nbae7bac35.kodrive.xyz
            at com.android.org.conscrypt.ConscryptFileDescriptorSocket.startHandshake(ConscryptFileDescriptorSocket.java:219)
            at okhttp3.internal.connection.RealConnection.connectTls(RealConnection.java:318)
            at okhttp3.internal.connection.RealConnection.establishProtocol(RealConnection.java:282)
            at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:167)
            at okhttp3.internal.connection.StreamAllocation.findConnection(StreamAllocation.java:257)
            at okhttp3.internal.connection.StreamAllocation.findHealthyConnection(StreamAllocation.java:135)
            at okhttp3.internal.connection.StreamAllocation.newStream(StreamAllocation.java:114)
            at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:42)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
            at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
            at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
            at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:126)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
            at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
            at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
            at okhttp3.RealCall.execute(RealCall.java:77)
    
    1 回复  |  直到 6 年前
        1
  •  4
  •   James    6 年前

    _ IllegalArgumentException