question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

IllegalArgumentException: sockaddrToInetAddress unsupported ss_family: 0

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
ivokccommented, Apr 28, 2018

huawei also has the question

0reactions
xckevincommented, Oct 27, 2022

Xiaomi device get same error. Android 9, Redmi 8A Dual

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found