cronet-transport-for-okhttp icon indicating copy to clipboard operation
cronet-transport-for-okhttp copied to clipboard

crash

Open phuong-tran opened this issue 2 years ago • 2 comments

I used the lib but I encountered a crash below

java.util.concurrent.ExecutionException: ey: Exception in CronetUrlRequest: net::ERR_SSL_BAD_RECORD_MAC_ALERT, ErrorCode=11, InternalErrorCode=-126, Retryable=false

phuong-tran avatar Sep 15 '22 08:09 phuong-tran

Hi,

This is usually an indicator that something/someone is tampering with secure connections. It might be anything from your antivirus to your ISP. It can also happen if you need to use a proxy for Internet connectivity.

If the above doesn't help you can try enabling more verbose logging or capturing a netlog (https://chromium.googlesource.com/chromium/src/+/HEAD/components/cronet/android/test_instructions.md#debugging) to see what's going on in more detail.

Danstahrg avatar Sep 15 '22 08:09 Danstahrg

Hi, thanks for your reply, is there any way to avoid crashing the app? In this case, the app cannot use but just react like a connection issue.

phuong-tran avatar Sep 16 '22 04:09 phuong-tran

Exceptions should bubble up all the way to the call site (either directly if using call.execute(), or in the onFailed() callback if you use enqueue). You can handle them there.

If that's not the case please share a full stack trace so we can investigate.

Danstahrg avatar Nov 08 '22 13:11 Danstahrg