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.

Unable to extract the trust manager on Android10Platform, sslSocketFactory is class com.android.org.conscrypt.OpenSSLSocketFactoryImpl site:stackoverflow.com

See original GitHub issue

Issue Summary

I’m using version 1.1.3. VimeoClient crashes upon initialize with the following stack trace:

Caused by: java.lang.IllegalStateException: Unable to extract the trust manager on Android10Platform, sslSocketFactory is class com.android.org.conscrypt.OpenSSLSocketFactoryImpl
        at okhttp3.OkHttpClient$Builder.sslSocketFactory(OkHttpClient.kt:751)
        at com.vimeo.networking.RetrofitClientBuilder.build(RetrofitClientBuilder.java:186)
        at com.vimeo.networking.VimeoClient.createOkHttpClient(VimeoClient.java:182)
        at com.vimeo.networking.VimeoClient.createRetrofit(VimeoClient.java:132)
        at com.vimeo.networking.VimeoClient.<init>(VimeoClient.java:121)
        at com.vimeo.networking.VimeoClient.initialize(VimeoClient.java:114)

Reproduction Steps

Initialize the VimeoClient.

Expected Behavior

VimeoClient initializes.

Actual Behavior

VimeoClient throws IllegalStateException upon initialize.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wooodenlegcommented, May 14, 2021

Thank you for your answer. I almost lost hope 😅 I’ve tried the alpha versions but I get conflict errors when trying to build:

...(20 similar errors with different classes)...
Duplicate class com.vimeo.networking2.params.SearchSortType found in the following modules: 
jetified-models-2.0.0-alpha.88 (com.github.vimeo.vimeo-networking-java:models:2.0.0-alpha.88),   
jetified-models-parcelable-2.0.0-alpha.88-runtime (com.github.vimeo.vimeo-networking-java:models-parcelable:2.0.0-alpha.88)   
and jetified-models-serializable-2.0.0-alpha.88 (com.github.vimeo.vimeo-networking-java:models-serializable:2.0.0-alpha.88)  

It might be a problem on my side but I’ve never seen a similar error with any other libs.

I understand that releasing public versions of this library is not the main focus and I am willing to use the alpha versions as long as they work. If filing a support ticket might help to improve the situation, I’ll gladly do it.

0reactions
wooodenlegcommented, May 16, 2021

Well, since I thought that alpha versions are only on Jitpack, I am using only com.github.vimeo:vimeo-networking-java:2.0.0-alpha.88 artifact. I haven’t noticed that there are others artifacts like models-parcelable so I didn’t include them. It looks like that the Jitpack dependency includes the whole repo with all modules so I am actually depending on all of the models modules.
When I realized this I excluded models-parcelable and models-serializable dependencies and everything seems to work now.

For future reference I used:

repositories {
    // ...
    maven { url = uri("https://jitpack.io") }
}

dependencies {
    // ...
    implementation("com.github.vimeo:vimeo-networking-java:2.0.0-alpha.88") {
        exclude(module = "models-serializable")
        exclude(module = "models-parcelable")
    }
}

@WhosNickDoglio com.vimeo.networking:vimeo-networking:2.0.0-alpha.88 does not seem to work. I guess that would have to be on maven central but there is only the 1.1.3 version.

Read more comments on GitHub >

github_iconTop Results From Across the Web

java.lang.IllegalStateException: Unable to extract the trust ...
Caused by: java.lang.IllegalStateException: Unable to extract the trust manager on Android10Platform, sslSocketFactory is class com.android.org.conscrypt.
Read more >
okhttp - Android 11 - Unable to extract the trust manager on ...
Android 11 - Unable to extract the trust manager on AndroidPlatform, sslSocketFactory is class com.android.org.conscrypt.
Read more >
Unable to extract the trust manager on Android10Platform ...
Unable to extract the trust manager on Android10Platform, sslSocketFactory is class com.android.org.conscrypt.OpenSSLSocketFactoryImpl site: ...
Read more >
okhttp3.internal.platform.Platform.trustManager java ... - Tabnine
trustManager (sslSocketFactory); } try { // org.conscrypt. ... throw new IllegalStateException("Unable to extract the trust manager on " + Platform.get() + " ...
Read more >
Unable to extract the trust manager on Android10Platform
无法在android10平台上提取信任管理器,sslSocketFactory是class com.android.org.conscrypt.OpenSSLSocketFactoryImpl 记录一下填坑内容。
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