SSL库中的Firebase Firestore后端失败,通常是协议错误错误:140740B5:SSL例程:SSL23_CLIENT_HELLO:无密码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SSL库中的Firebase Firestore后端失败,通常是协议错误错误:140740B5:SSL例程:SSL23_CLIENT_HELLO:无密码相关的知识,希望对你有一定的参考价值。
我在android 4.4.2中运行Firestore数据获取时收到此错误
我曾尝试为该应用添加TLS 1.2支持,但仍未解决Firestore的问题。
1-26 18:50:40.901 16934-17082/package I/Firestore: (0.6.6-dev) [ExponentialBackoff]: Backing off for 33087 ms (base delay: 25624 ms, delay with jitter: 36533 ms, last attempt: 3446 ms ago)
11-26 18:50:44.421 16934-17082/net.insi8.word I/Firestore: (0.6.6-dev) [WriteStream]: (42386850) Stream closed with status: Status{code=UNAVAILABLE, description=null, cause=javax.net.ssl.SSLHandshakeException: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x642b6078: Failure in SSL library, usually a protocol error
error:140740B5:SSL routines:SSL23_CLIENT_HELLO:no ciphers available (external/openssl/ssl/s23_clnt.c:486 0x5eceb6fd:0x00000000)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:448)
at io.grpc.okhttp.OkHttpProtocolNegotiator.negotiate(OkHttpProtocolNegotiator.java:92)
at io.grpc.okhttp.OkHttpProtocolNegotiator$AndroidNegotiator.negotiate(OkHttpProtocolNegotiator.java:147)
at io.grpc.okhttp.OkHttpTlsUpgrader.upgrade(OkHttpTlsUpgrader.java:63)
at io.grpc.okhttp.OkHttpClientTransport$2.run(OkHttpClientTransport.java:466)
at io.grpc.internal.SerializingExecutor.run(SerializingExecutor.java:123)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:841)
Caused by: javax.net.ssl.SSLProtocolException: SSL handshake aborted: ssl=0x642b6078: Failure in SSL library, usually a protocol error
error:140740B5:SSL routines:SSL23_CLIENT_HELLO:no ciphers available (external/openssl/ssl/s23_clnt.c:486 0x5eceb6fd:0x00000000)
at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method)
at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:405)
... 8 more
}.
11-26 18:50:44.422 16934-17082/package I/Firestore: (0.6.6-dev) [ExponentialBackoff]: Backing off for 81781 ms (base delay: 60000 ms, delay with jitter: 81785 ms, last attempt: 4 ms ago)
11-26 18:50:44.423 16934-17082/package I/Firestore: (0.6.6-dev) [WriteStream]: stream callback skipped by CloseGuardedRunner.
11-26 18:50:50.902 16934-17082/package I/Firestore: (0.6.6-dev) [OnlineStateTracker]: Could not reach Cloud Firestore backend. Backend didn't respond within 10 seconds
答案
我在Android 4.4中遇到了完全相同的问题。
对我来说,谷歌播放服务已经过时了。我在日志中找到了:
Google Play services out of date. Requires 12451000 but found 4325036
您可以通过访问Google Play商店并安装Google Play服务更新来解决此问题。
以上是关于SSL库中的Firebase Firestore后端失败,通常是协议错误错误:140740B5:SSL例程:SSL23_CLIENT_HELLO:无密码的主要内容,如果未能解决你的问题,请参考以下文章
注销Firebase经过身份验证的用户后写入Firestore
Flutter:Firebase 身份验证和 Firestore 快照流
如何遍历 Firestore(React 和 Firebase Web 应用程序)中的多个用户子集合?
升级到 firebase js sdk v8 后,在“firebase”中找不到导出“firestore”(导入为“firebase”)