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 find acceptable protocols with okhttp3:okhttp:3.13.1

See original GitHub issue

Hi. I just update okhttp version to 3.14.1. After, I run the app and encountered a problem when I I tried to get the data or logout (login is okay) This is not a serious error if I downgrade the okhttp version, but I hope you will fix it soon

NetworkIOException error: Unable to find acceptable protocols. isFallback=false, modes=[ConnectionSpec(cipherSuites=[TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256, TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA], tlsVersions=[TLS_1_3, TLS_1_2], supportsTlsExtensions=true), ConnectionSpec()], supported protocols=[TLSv1]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
greg-dbcommented, Oct 28, 2019

Apologies for the lack of updates on this issue. I believe v3.1.1 should have fixed this. @drakeet (and others on this thread if you haven’t already), can you update to v3.1.1 and let me know if that does or doesn’t help? Thanks!

1reaction
adityabhaskarcommented, May 3, 2019

I’m getting the same error after updating okhttp3. Do we know the latest version of okhttp with which the SDK works?

(Update: Downgrading okhttp3 to 3.12.0 has resolved the issue for now)

Using: SDK ver 3.0.11 okhttp3 ver 3.14.1

Code:

        try {
            return mDbxClient.users().currentAccount
        } catch (e: DbxException) {
            mException = e
        }

Error:

com.dropbox.core.NetworkIOException: Unable to find acceptable protocols. 
isFallback=false, modes=[ConnectionSpec(cipherSuites=[TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256,
TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256, TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, 
TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384, 
TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256, 
TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, 
TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, 
TLS_RSA_WITH_AES_256_GCM_SHA384, TLS_RSA_WITH_AES_128_CBC_SHA, 
TLS_RSA_WITH_AES_256_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA], 
tlsVersions=[TLS_1_3, TLS_1_2], supportsTlsExtensions=true), ConnectionSpec()], 
supported protocols=[TLSv1]
Read more comments on GitHub >

github_iconTop Results From Across the Web

okHTTP Unable to find acceptable protocols(android)
I tried your code but I got error The method setCertificatePinner(CertificatePinner) is undefined for the type OkHttpClient , why? · You might not...
Read more >
Master unable to connect to GitHub using IBM JDK 8
Master unable to connect to GitHub using IBM JDK 8 - Unable to find acceptable protocols.
Read more >
ConnectionSpecSelector.java - Google Git
See the License for the specific language governing permissions and ... package com.squareup.okhttp.internal; ... "Unable to find acceptable protocols.
Read more >
Full Text Bug Listing - Bugs - Eclipse
You should see the proper aether-okhttp-connector jar in the plugins directory. ... then I'm back to the "Unable to find acceptable protocols.
Read more >
okhttp3.ConnectionSpec.isCompatible java code examples
... this socket supports fewer // protocols than was suggested by a prior socket). throw new UnknownServiceException( "Unable to find acceptable protocols.
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