Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OkHttp Unable to extract the trust manager #8322

Closed
ethaMont opened this issue Jun 22, 2016 · 1 comment
Closed

OkHttp Unable to extract the trust manager #8322

ethaMont opened this issue Jun 22, 2016 · 1 comment
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@ethaMont
Copy link

ethaMont commented Jun 22, 2016

On Android with react-native@0.28.0 or react-native@0.29.0.rc.0, I'm getting the following exception:

Exception in native call from JS
                                                                 java.lang.IllegalStateException: Unable to extract the trust manager on okhttp3.internal.Platform$Android@5049aa5, sslSocketFactory is class crittercism.android.q
                                                                     at okhttp3.OkHttpClient.<init>(OkHttpClient.java:187)
                                                                     at okhttp3.OkHttpClient.<init>(OkHttpClient.java:60)
                                                                     at okhttp3.OkHttpClient$Builder.build(OkHttpClient.java:718)
                                                                     at com.facebook.react.modules.network.OkHttpClientProvider.createClient(OkHttpClientProvider.java:42)
                                                                     at com.facebook.react.modules.network.OkHttpClientProvider.getOkHttpClient(OkHttpClientProvider.java:29)
                                                                     at com.facebook.react.modules.fresco.FrescoModule.getDefaultConfig(FrescoModule.java:101)
                                                                     at com.facebook.react.modules.fresco.FrescoModule.<init>(FrescoModule.java:45)
                                                                     at com.facebook.react.shell.MainReactPackage.createNativeModules(MainReactPackage.java:71)
                                                                     at com.facebook.react.ReactInstanceManagerImpl.processPackage(ReactInstanceManagerImpl.java:922)
                                                                     at com.facebook.react.ReactInstanceManagerImpl.createReactContext(ReactInstanceManagerImpl.java:838)
                                                                     at com.facebook.react.ReactInstanceManagerImpl.access$700(ReactInstanceManagerImpl.java:100)
                                                                     at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(ReactInstanceManagerImpl.java:197)
                                                                     at com.facebook.react.ReactInstanceManagerImpl$ReactContextInitAsyncTask.doInBackground(ReactInstanceManagerImpl.java:180)
                                                                     at android.os.AsyncTask$2.call(AsyncTask.java:295)
                                                                     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
                                                                     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:234)
                                                                     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)
                                                                     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)
                                                                     at java.lang.Thread.run(Thread.java:818)

It works fine with react-native@0.26.3
The application code is the exact same one than here https://facebook.github.io/react-native/docs/embedded-app-android.html

Could it be related to square/okhttp#2323?

@mkonicek
Copy link
Contributor

Hi there! This issue is being closed because it has been inactive for a while.

But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/okhttp-unable-to-extract-the-trust-manager

ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub. GitHub issues have voting too, nevertheless
Product Pains has been very useful in highlighting the top bugs and feature requests:
https://productpains.com/product/react-native?tab=top

Also, if this issue is a bug, please consider sending a pull request with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 19, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants