-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Unable to extract the trust manager #2323
Copy link
Copy link
Closed
Labels
bugBug in existing codeBug in existing code
Description
Hi,
after upgrading from OkHttp 3.0.1 to 3.1.0 I get the following stack trace and crash after calling build() to create a OkHttpClient.
java.lang.IllegalStateException: Unable to extract the trust manager on okhttp3.internal.Platform$Android@1d8cf999, sslSocketFactory is class com.google.android.gms.org.conscrypt.KitKatPlatformOpenSSLSocketAdapterFactory
at okhttp3.OkHttpClient.<init>(OkHttpClient.java:187)
at okhttp3.OkHttpClient.<init>(OkHttpClient.java:60)
at okhttp3.OkHttpClient$Builder.build(OkHttpClient.java:719)
This issue was not present in 3.0.1.
Here's where the crash happens:
OkHttpClient.Builder builder = new OkHttpClient.Builder()
.connectTimeout(10, TimeUnit.SECONDS)
.writeTimeout(10, TimeUnit.SECONDS)
.readTimeout(30, TimeUnit.SECONDS);
OkHttpClient client = builder.build();
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugBug in existing codeBug in existing code