IllegalArgumentException: sockaddrToInetAddress unsupported ss_family: 0
See original GitHub issueI’ve been seeing this exception in a couple of my users’ crash logs. I haven’t really been able to replicate it either. The crash occurred on OkHttp 3.7.0, on Android 7.0, on a Samsung Galaxy S8+. Unfortunately, I don’t have much other information that I can provide, since I haven’t been able to personally recreate this crash.
Exception java.lang.IllegalArgumentException: sockaddrToInetAddress unsupported ss_family: 0
libcore.io.Posix.android_getaddrinfo (Posix.java)
libcore.io.ForwardingOs.android_getaddrinfo (ForwardingOs.java:55)
java.net.Inet6AddressImpl.lookupHostByName (Inet6AddressImpl.java:106)
java.net.Inet6AddressImpl.lookupAllHostAddr (Inet6AddressImpl.java:74)
java.net.InetAddress.getAllByName (InetAddress.java:752)
okhttp3.Dns$1.lookup (Dns.java:39)
okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress (RouteSelector.java:170)
okhttp3.internal.connection.RouteSelector.nextProxy (RouteSelector.java:136)
okhttp3.internal.connection.RouteSelector.next (RouteSelector.java:81)
okhttp3.internal.connection.StreamAllocation.findConnection (StreamAllocation.java:171)
okhttp3.internal.connection.StreamAllocation.findHealthyConnection (StreamAllocation.java:121)
okhttp3.internal.connection.StreamAllocation.newStream (StreamAllocation.java:100)
okhttp3.internal.connection.ConnectInterceptor.intercept (ConnectInterceptor.java:42)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67)
okhttp3.internal.cache.CacheInterceptor.intercept (CacheInterceptor.java:93)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67)
okhttp3.internal.http.BridgeInterceptor.intercept (BridgeInterceptor.java:93)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92)
okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept (RetryAndFollowUpInterceptor.java:120)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:92)
okhttp3.internal.http.RealInterceptorChain.proceed (RealInterceptorChain.java:67)
okhttp3.RealCall.getResponseWithInterceptorChain (RealCall.java:179)
okhttp3.RealCall$AsyncCall.execute (RealCall.java:129)
okhttp3.internal.NamedRunnable.run (NamedRunnable.java:32)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
java.lang.Thread.run (Thread.java:762)
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
sockaddrToInetAddress unsupported ss_family: 0
IllegalArgumentException : sockaddrToInetAddress unsupported ss_family: 0 ... I've been seeing this exception in a couple of my users' crash logs.
Read more >luni/src/main/native/NetworkUtilities.cpp - platform/libcore
jniThrowExceptionFmt(env, "java/lang/IllegalArgumentException",. "sockaddrToInetAddress unsupported ss_family: %i", ss.ss_family);. return NULL;.
Read more >java.lang.IllegalArgumentException: Unsupported class file ...
I had a similar problem and fix it by chaining Gradle JVM settings in my preferred IDE which is IntelliJ (should be possible...
Read more >libcore_io_Linux.cpp - Android Code Search
We assume the calls are rare enough that it does not make sense to cache class objects. The. // advantage is lower maintenance...
Read more >Unsupported authority type. Please use B2C authority
lang.IllegalArgumentException: Unsupported authority type. Please use B2C authority. I am trying to integrate with Azure AD from a Java servlets ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
huawei also has the question
Xiaomi device get same error. Android 9, Redmi 8A Dual