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

Firebase SDK https requests on Android Pie stop working at some point #4

Open
MrVadi opened this issue Aug 7, 2019 · 0 comments
Open

Comments

@MrVadi
Copy link

MrVadi commented Aug 7, 2019

Hi everyone. We use your library in our product which is Wallet based on Stellar network and I faced an issue working with Firebase SDK.

These lines cause problems on Android P in our case:

Security.removeProvider("BC");
Security.insertProviderAt(new BouncyCastleProvider(), 1);

Https requests get stuck when Firebase API updates certificates or something.
I cannot have control over requests inside of Firebase SDK. And this bug happens at some point after use of app & all Firebase requests not working after this point.

This is the exception I get from Firebase when this issue appears:

error sending network request POST https://firebasestorage.googleapis.com
java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: AndroidOpenSSL, class: com.android.org.conscrypt.DefaultSSLContextImpl)
at javax.net.ssl.DefaultSSLSocketFactory.throwException(SSLSocketFactory.java:284)
at javax.net.ssl.DefaultSSLSocketFactory.createSocket(SSLSocketFactory.java:306)
at com.android.okhttp.internal.io.RealConnection.connectTls(RealConnection.java:181)
at com.android.okhttp.internal.io.RealConnection.connectSocket(RealConnection.java:149)
at com.android.okhttp.internal.io.RealConnection.connect(RealConnection.java:112)
at com.android.okhttp.internal.http.StreamAllocation.findConnection(StreamAllocation.java:184)
at com.android.okhttp.internal.http.StreamAllocation.findHealthyConnection(StreamAllocation.java:126)
at com.android.okhttp.internal.http.StreamAllocation.newStream(StreamAllocation.java:95)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:281)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:224)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:461)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:407)
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:538)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getResponseCode(DelegatingHttpsURLConnection.java:105)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant