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.

SSLException: encrypted packet oversized

See original GitHub issue

I ran into this error using the Ion library in the last few months, seems like it was introduced by google/conscrypt@61a5351. For the last year we have used these URLs and it worked fine. I filed an issue in ion too.

When trying to fetch an image from an HTTPS url from Amazon S3 like https://s3-ap-southeast-1.amazonaws.com/radius-files/users/58883f0e88b1b1000a2ab5c5.jpg?1485324119111 I get this error:

javax.net.ssl.SSLException: encrypted packet oversized
        at com.google.android.gms.org.conscrypt.OpenSSLEngineImpl.unwrap(:com.google.android.gms:496)
        at com.google.android.gms.org.conscrypt.OpenSSLEngineImpl.unwrap(:com.google.android.gms:458)
        at com.google.android.gms.org.conscrypt.OpenSSLEngineImpl.unwrap(:com.google.android.gms:423)
        at com.koushikdutta.async.AsyncSSLSocketWrapper$5.onDataAvailable(AsyncSSLSocketWrapper.java:194)
        at com.koushikdutta.async.Util.emitAllData(Util.java:23)
        at com.koushikdutta.async.AsyncNetworkSocket.onReadable(AsyncNetworkSocket.java:152)
        at com.koushikdutta.async.AsyncServer.runLoop(AsyncServer.java:789)
        at com.koushikdutta.async.AsyncServer.run(AsyncServer.java:627)
        at com.koushikdutta.async.AsyncServer.access$700(AsyncServer.java:41)
        at com.koushikdutta.async.AsyncServer$13.run(AsyncServer.java:569)

Also if I make a request using a simple HttpUrlConnection it works fine. Fetching it using the browser works fine too. Any idea why it is running into that error?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
deanrobertcookcommented, May 16, 2017

@amosyuen Has this issue been fixed for you?

We’re using the Android Async library (upon which Ion is based) and many of our users are experiencing this crash on some of the newest versions of Google Play Services (I’ve only seen it on the beta versions myself).

Pardon my ignorance, but after a fair amount of searching it’s not obvious to me if this is fixed and soon to be released as an update to the beta version or if this will remain as is and we’ll need to bother the Android Async guys for an update (or do something ourselves…). If someone could please enlighten me and perhaps give a rough time estimation, that would be much appreciated!

1reaction
amosyuencommented, May 16, 2017

@deanrobertcook unfortunately last I checked a couple of months ago, it seems the problem wasn’t fixed. I’m not entirely sure if it’s an Ion not using the new version or a continued conscrypt problem, but in the end our team decided to use a different library than Ion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

K15292: Troubleshooting SSL/TLS handshake failures - AskF5
The BIG-IP system is handling a large number of Secure Socket Layer (SSL) connections and the number of SSL TPS connections reaches or...
Read more >
SSL Provider:Packet size too large for SSL Encrypt/Decrypt ...
We have recently installed SSL certificate on our server. After installing, we started getting below error while running our SSIS packages.
Read more >
OpenSslEngine xref - Netty
... 52 private static final SSLException ENCRYPTED_PACKET_OVERSIZED = new SSLException("encrypted packet oversized"); 53 54 static { 55 ENGINE_CLOSED.
Read more >
TroubleShoot: WebSphere SSL security problems - IBM
This document contains troubleshooting information for the Secure ... that you have updated your WebSphere Application Server fix pack, ...
Read more >
TLS/SSL Handshake Failures | Apigee Edge
The client application does not use any of the High Encryption cipher suite algorithms. This mismatch is the cause of the TLS/SSL handshake...
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